Crafty 23.2 JA x64: Little bug ...

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Frank Quisinsky
Posts: 6808
Joined: Wed Nov 18, 2009 7:16 pm
Location: Gutweiler, Germany
Full name: Frank Quisinsky

Crafty 23.2 JA x64: Little bug ...

Post by Frank Quisinsky »

Hi Bob,

I think in Crafty 23.2 JA x64 is a little bug ...

Crafty.rc

Code: Select all

mt=1
# (Make Crafty not use cpu on opponents time)
# smpnice=1


egtb
# adaptive 750K 24M 192M 24M 48M
tbpath=c:\chess\_nalimov
cache=32M

hash=256M
hashp=16M

ponder on

[b]# (for use use with ponder on)
# mode=tournament[/b]

# (Allows Crafty to try to win drawn games (according to Endgame Tables))
swindle on

learn=0
 
book off

# (Makes crafty use a lot more time on the first 8 moves out of book)
# timebook 80 8

# show book
# book random 1
# bookw freq 0.7
# bookw ratio 0.8
# bookw eval 0.6
# bookw learn 1
# bookw cap 0.5
# book width 4

# resign 9 1
log=off
exit
With the parameter ...

# (for use use with ponder on)
# mode=tournament


If I activate the parameter, Crafty 23.2 JA x64 lost many games on time. Around 15-20% of all games 2-3 moves before the time control.

Example: Time Control is 40 in 10 ...
Crafty lost on time after 37, 38, 39 moves.

Since I deactivated this parameter no problems with lost on time games here.

Best
Frank
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 23.2 JA x64: Little bug ...

Post by bob »

Frank Quisinsky wrote:Hi Bob,

I think in Crafty 23.2 JA x64 is a little bug ...

Crafty.rc

Code: Select all

mt=1
# (Make Crafty not use cpu on opponents time)
# smpnice=1


egtb
# adaptive 750K 24M 192M 24M 48M
tbpath=c:\chess\_nalimov
cache=32M

hash=256M
hashp=16M

ponder on

[b]# (for use use with ponder on)
# mode=tournament[/b]

# (Allows Crafty to try to win drawn games (according to Endgame Tables))
swindle on

learn=0
 
book off

# (Makes crafty use a lot more time on the first 8 moves out of book)
# timebook 80 8

# show book
# book random 1
# bookw freq 0.7
# bookw ratio 0.8
# bookw eval 0.6
# bookw learn 1
# bookw cap 0.5
# book width 4

# resign 9 1
log=off
exit
With the parameter ...

# (for use use with ponder on)
# mode=tournament


If I activate the parameter, Crafty 23.2 JA x64 lost many games on time. Around 15-20% of all games 2-3 moves before the time control.

Example: Time Control is 40 in 10 ...
Crafty lost on time after 37, 38, 39 moves.

Since I deactivated this parameter no problems with lost on time games here.

Best
Frank
That should only affect play while in book. It changes the way it ponders while still in book. Can't imagine how it would cause time losses, but will check to see if it somehow changes something unintentionally...

I looked and it does have an effect. If crafty notices it is getting too far behind the opponent on the clock, it will accelerate its play to catch up. This mode (mode=tournament) disables that "speed-up" code which could cause problems I suppose. I'll take a look at some real games to see.
Frank Quisinsky
Posts: 6808
Joined: Wed Nov 18, 2009 7:16 pm
Location: Gutweiler, Germany
Full name: Frank Quisinsky

Re: Crafty 23.2 JA x64: Little bug ...

Post by Frank Quisinsky »

Hi Bob,

I forgot ...

Windows XP Prof. x64
Shredder Classic 4 GUI
With WB2uci adapter, latest version
Ponder = on
First 100 SWCR games = around 15 lost on time games

Since game 100 I changed the crafty.rc
Since game 100 up to "so far" game 140 no lost on time games!

I can send the games if you like.

THANKS for your comments.

Best
Frank

PS: For my SWCR ratinglist the lost on time games are replayed.

Adapter configuartion file:

Code: Select all

[ENGINE]
Name              = Crafty 23.2 JA x64
Author            = Prof. Robert Hyatt
Filename          = WB2uci-x64.exe

[OPTIONS]
Program           = Crafty_232-x64.exe
;InitString       =
Protocol          = 2
InitTime          = 5
LevelExtend       = none
ShowThinkingMove  = true
WhiteScore        = true
;Logfile          = true
TerminateHard     = true

Visible           = Extras,Protocol,InitTime,ShowThinkingMove,LevelExtend

[EXTRAS]
Clear Hash        = clrhash|button
Crafty.rc I used I added in my first posting.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 23.2 JA x64: Little bug ...

Post by bob »

Frank Quisinsky wrote:Hi Bob,

I forgot ...

Windows XP Prof. x64
Shredder Classic 4 GUI
With WB2uci adapter, latest version
Ponder = on
First 100 SWCR games = around 15 lost on time games

Since game 100 I changed the crafty.rc
Since game 100 up to "so far" game 140 no lost on time games!

I can send the games if you like.

THANKS for your comments.

Best
Frank

PS: For my SWCR ratinglist the lost on time games are replayed.

Adapter configuartion file:

Code: Select all

[ENGINE]
Name              = Crafty 23.2 JA x64
Author            = Prof. Robert Hyatt
Filename          = WB2uci-x64.exe

[OPTIONS]
Program           = Crafty_232-x64.exe
;InitString       =
Protocol          = 2
InitTime          = 5
LevelExtend       = none
ShowThinkingMove  = true
WhiteScore        = true
;Logfile          = true
TerminateHard     = true

Visible           = Extras,Protocol,InitTime,ShowThinkingMove,LevelExtend

[EXTRAS]
Clear Hash        = clrhash|button
Crafty.rc I used I added in my first posting.
I've fixed this in 23.3, so that mode tournament will only do what it is supposed to do and trick up the book pondering algorithm.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 23.2 JA x64: Little bug ...

Post by bob »

Frank:

A couple of questions as I look at this issue.

(1) what time control are you using? Increment or sudden--death?

(2) are you using a supposed winboard compatible interface? The winboard standard includes a "computer" command that should be sent to the engine if it is playing a computer (as opposed to a human, this is normally associated with ICC but it is part of the standard). Crafty needs to know it is playing a computer because it has always had some human-specific code here and there. And this time usage stuff is one of the things this affects.

If you don't know whether it is doing this correctly, just email me a log.nnn file and I can quickly discover this. If it gets the "computer" command then the "mode tournament" will not affect time usage at all. Looks like something is not quite right in GUI-land here.
Frank Quisinsky
Posts: 6808
Joined: Wed Nov 18, 2009 7:16 pm
Location: Gutweiler, Germany
Full name: Frank Quisinsky

Re: Crafty 23.2 JA x64: Little bug ...

Post by Frank Quisinsky »

Hello Robert.

1. time control:
40 moves in 10 minutes, 40 moves in 10 minutes ... repeadedly

2. Interface = Shredder Classic 4 GUI.
Supported UCI protocol, configuration as Winboard engine is possible too.

I am using the WB2uci adapter by Marlin (configuration file a set in the other message).

Not sure:
I am looking in my Crafty.rc ... missed the "computer" command. Can't understand why I delete the computer command in Crafty.rc. Since years I am using Crafty with "computer" in Crafty.rc. I think I make a mistake in my Crafty.rc file.

After I don't set ...

Code: Select all

# (for use use with ponder on)
# mode=tournament
and without "computer" command in Crafty.rc ... no problems here all works fine.

Now I will try the following rc file (with computer command and with mode=tournament parameter, log = on.

Let me test ist ...

Here the Crafty.rc I am using now ...

Code: Select all

computer

mt=1
# (Make Crafty not use cpu on opponents time)
# smpnice=1

egtb
# adaptive 750K 24M 192M 24M 48M
tbpath=c:\chess\_nalimov
cache=32M

hash=256M
hashp=16M

ponder on

# (for use use with ponder on)
mode=tournament

# (Allows Crafty to try to win drawn games (according to Endgame Tables))
swindle on

learn=0
 
book off

# (Makes crafty use a lot more time on the first 8 moves out of book)
# timebook 80 8

# show book
# book random 1
# bookw freq 0.7
# bookw ratio 0.8
# bookw eval 0.6
# bookw learn 1
# bookw cap 0.5
# book width 4

# resign 9 1

log=on
exit
Best
Frank
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 23.2 JA x64: Little bug ...

Post by bob »

Frank Quisinsky wrote:Hello Robert.

1. time control:
40 moves in 10 minutes, 40 moves in 10 minutes ... repeadedly

2. Interface = Shredder Classic 4 GUI.
Supported UCI protocol, configuration as Winboard engine is possible too.

I am using the WB2uci adapter by Marlin (configuration file a set in the other message).

Not sure:
I am looking in my Crafty.rc ... missed the "computer" command. Can't understand why I delete the computer command in Crafty.rc. Since years I am using Crafty with "computer" in Crafty.rc. I think I make a mistake in my Crafty.rc file.
Here's the thing. (1) the interface should be sending the "computer" command as part of the xboard protocol. (2) if you put it in, then it should behave exactly the same as the mode tournament, with respect to time usage.

I'll try some cluster runs with fixed repeating time controls to see if there is an issue near the end that has not been seen previously. Since we almost never play like that (most events are on servers) there could be a problem that needs attention. More later.



[quote

After I don't set ...

Code: Select all

# (for use use with ponder on)
# mode=tournament
and without "computer" command in Crafty.rc ... no problems here all works fine.

Now I will try the following rc file (with computer command and with mode=tournament parameter, log = on.

Let me test ist ...

Here the Crafty.rc I am using now ...

Code: Select all

computer

mt=1
# (Make Crafty not use cpu on opponents time)
# smpnice=1

egtb
# adaptive 750K 24M 192M 24M 48M
tbpath=c:\chess\_nalimov
cache=32M

hash=256M
hashp=16M

ponder on

# (for use use with ponder on)
mode=tournament

# (Allows Crafty to try to win drawn games (according to Endgame Tables))
swindle on

learn=0
 
book off

# (Makes crafty use a lot more time on the first 8 moves out of book)
# timebook 80 8

# show book
# book random 1
# bookw freq 0.7
# bookw ratio 0.8
# bookw eval 0.6
# bookw learn 1
# bookw cap 0.5
# book width 4

# resign 9 1

log=on
exit
Best
Frank[/quote]
Frank Quisinsky
Posts: 6808
Joined: Wed Nov 18, 2009 7:16 pm
Location: Gutweiler, Germany
Full name: Frank Quisinsky

Re: Crafty 23.2 JA x64: Little bug ...

Post by Frank Quisinsky »

Hello Robert,

My computers played now with "computer" and with "mode=tournament". Now I have again the problems with lost on time games.

If I don't set "mode-tournament" all works fine.

Please download (Crafty configuration + log files):
http://www.amateurschach.de/download/x6 ... roblem.rar

I added 4 log files for examples!

Please write a short message if you download the file, so I can delete it from my server.

THANKS that you have time for looking!

Best
Frank
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 23.2 JA x64: Little bug ...

Post by bob »

Frank Quisinsky wrote:Hello Robert,

My computers played now with "computer" and with "mode=tournament". Now I have again the problems with lost on time games.

If I don't set "mode-tournament" all works fine.

Please download (Crafty configuration + log files):
http://www.amateurschach.de/download/x6 ... roblem.rar

I added 4 log files for examples!

Please write a short message if you download the file, so I can delete it from my server.

THANKS that you have time for looking!

Best
Frank
Can you save it as something besides ".rar"?
Frank Quisinsky
Posts: 6808
Joined: Wed Nov 18, 2009 7:16 pm
Location: Gutweiler, Germany
Full name: Frank Quisinsky

Re: Crafty 23.2 JA x64: Little bug ...

Post by Frank Quisinsky »