Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: To: Dr. Robert Hyatt/ Crafty 19.19

Author: Robert Hyatt

Date: 08:50:25 03/02/05

Go up one level in this thread


On March 02, 2005 at 00:38:52, Joshua Haglund wrote:

>I sent you this similar email twice: Since 2/19/05
>
>
>Dear Dr. Hyatt,
>
>1st)You didn't include your changes to main.c in version 19.19 in the updated
>version on the ftp. Atleast the changes you did with Crafty's learning.

I dont always remember to mention simple bug fixes in main.c, particularly if
they are not part of the chess engine itself (evaluation, search, etc).  I'll
fix that.

>
>2nd)After playing a lot of games with Crafty 19.19, I decided to delete the
>position.bin file and import position.dat. Position.dat is the position.lrn from
>all the games I played. Basically, just testing to see if the import commmand
>works.
>
>It imported with 2 messages being the same:
>--------------------------------------------
>hash table memory =   96M bytes.
>pawn hash table memory =   48M bytes.
>
>Crafty v19.19
>
>White(1): import position.dat
>castling status is bad.
>castling status is bad.
>White(1):quit
>


That says something is wrong.  And when something is wrong here, it is a _real_
problem.  I have been tied up in mid-term exams and the like for the past 1.5
weeks, and will look at this when things calm down.  But what that means is that
one of the FEN positions is somehow broken, yet it gets stuffed into the
permanent hash table and will be used later.  If it contains bogus things, like
castling when castling is not possible, then that will cause the kind of thing
you are seeing...



>-------------------------------------------
>
>Here is the simplified log file after I typed 'go'.
>
>---------------------------------
>
>hash table memory =   96M bytes.
>pawn hash table memory =   48M bytes.
>
>Crafty v19.19
>
>White(1): go
>              clearing hash tables
>              time surplus   0.00  time limit 30.00 (3:30)
>              depth   time  score   variation (1)
>captured a king
>piece=7,from=32,to=4,captured=3
>ply=4
>
>       +---+---+---+---+---+---+---+---+
>    8  |<R>|<N>|<B>|<Q>|<K>|<B>|   |<R>|
>       +---+---+---+---+---+---+---+---+
>    7  |<P>|<P>|<P>|<P>|<P>|<P>|<P>|<P>|
>       +---+---+---+---+---+---+---+---+
>    6  |   | . |   | . |   |<N>|   | . |
>       +---+---+---+---+---+---+---+---+
>    5  |<Q>|   | . |   | . |   | . |   |
>       +---+---+---+---+---+---+---+---+
>    4  |   | . |   |-P-|-P-| . |   | . |
>       +---+---+---+---+---+---+---+---+
>    3  | . |   | . |   | . |   | . |   |
>       +---+---+---+---+---+---+---+---+
>    2  |-P-|-P-|-P-| . |   |-P-|-P-|-P-|
>       +---+---+---+---+---+---+---+---+
>    1  |-K-|-N-|-B-|-Q-| . |-B-|-N-|-R-|
>       +---+---+---+---+---+---+---+---+
>         a   b   c   d   e   f   g   h
>
>
>captured a king
>piece=6,from=0,to=8,captured=3
>ply=8
>
>       +---+---+---+---+---+---+---+---+
>    8  |<R>|<N>|<B>|<Q>|<K>|<B>|<N>|<R>|
>       +---+---+---+---+---+---+---+---+
>    7  |<P>|<P>|<P>|<P>|<P>|<P>|<P>|   |
>       +---+---+---+---+---+---+---+---+
>    6  |   | . |   | . |   | . |   |<P>|
>       +---+---+---+---+---+---+---+---+
>    5  | . |   | . |   | . |   | . |   |
>       +---+---+---+---+---+---+---+---+
>    4  |   | . |   | . |   | . |   | . |
>       +---+---+---+---+---+---+---+---+
>    3  | . |   | . |   | . |-N-| . |   |
>       +---+---+---+---+---+---+---+---+
>    2  |   |-P-|-Q-|-P-|-P-|-P-|-P-|-P-|
>       +---+---+---+---+---+---+---+---+
>    1  |<R>|-N-|-B-|   | . |-B-| . |-R-|
>       +---+---+---+---+---+---+---+---+
>         a   b   c   d   e   f   g   h
>
>                6     0.13 -Mat01   1. Nf3 Rxa2#
>
>captured a king
>piece=6,from=1,to=0,captured=3
>ply=6
>
>       +---+---+---+---+---+---+---+---+
>    8  |<R>| . |<B>|<Q>|<K>|<B>|<N>|<R>|
>       +---+---+---+---+---+---+---+---+
>    7  |<P>|<P>|<P>|<P>|<P>|<P>|<P>|<P>|
>       +---+---+---+---+---+---+---+---+
>    6  |   | . |<N>| . |   | . |   | . |
>       +---+---+---+---+---+---+---+---+
>    5  |<Q>|   | . |   | . |   | . |   |
>       +---+---+---+---+---+---+---+---+
>    4  |   | . |   | . |   | . |   | . |
>       +---+---+---+---+---+---+---+---+
>    3  |-P-|-P-| . |   | . |   | . |   |
>       +---+---+---+---+---+---+---+---+
>    2  |   |-B-|-P-|-P-|-P-|-P-|-P-|-P-|
>       +---+---+---+---+---+---+---+---+
>    1  | . |<R>| . |-Q-|-K-|-B-|-N-|-R-|
>       +---+---+---+---+---+---+---+---+
>         a   b   c   d   e   f   g   h
>
>                6->   1.13  -0.32   1. e4 f5 2. Bc4 Qa4 3. Na3 fxe4
>captured a king
>piece=7,from=32,to=4,captured=3
>ply=6
>
>       +---+---+---+---+---+---+---+---+
>    8  |<R>|<N>|<B>|<Q>|<K>|<B>|<N>|<R>|
>       +---+---+---+---+---+---+---+---+
>    7  |<P>|<P>|<P>|<P>|<P>|   |<P>|<P>|
>       +---+---+---+---+---+---+---+---+
>    6  |   | . |   | . |   | . |   | . |
>       +---+---+---+---+---+---+---+---+
>    5  | . |   | . |   | . |   | . |   |
>       +---+---+---+---+---+---+---+---+
>    4  |   | . |-B-|-P-|<P>| . |   | . |
>       +---+---+---+---+---+---+---+---+
>    3  | . |   | . |   | . |   | . |   |
>       +---+---+---+---+---+---+---+---+
>    2  |-P-|-P-|-P-| . |   |-P-|-P-|-P-|
>       +---+---+---+---+---+---+---+---+
>    1  |<R>|-N-|-B-|-Q-|<Q>|   |-N-|-R-|
>       +---+---+---+---+---+---+---+---+
>         a   b   c   d   e   f   g   h
>
>captured a king
>piece=7,from=32,to=4,captured=3
>ply=6
>
>       +---+---+---+---+---+---+---+---+
>    8  |   |<N>|<B>|<Q>|<K>|<B>|<N>|<R>|
>       +---+---+---+---+---+---+---+---+
>    7  |<R>|<P>|<P>|<P>|<P>|<P>|<P>|<P>|
>       +---+---+---+---+---+---+---+---+
>    6  |<P>| . |   | . |   | . |   | . |
>       +---+---+---+---+---+---+---+---+
>    5  | . |   | . |   | . |   | . |   |
>       +---+---+---+---+---+---+---+---+
>    4  |   | . |   | . |-P-| . |   | . |
>       +---+---+---+---+---+---+---+---+
>    3  | . |   | . |   | . |   | . |   |
>       +---+---+---+---+---+---+---+---+
>    2  |   |-P-|-P-|-P-|   |-P-|-P-|-P-|
>       +---+---+---+---+---+---+---+---+
>    1  |<R>|   |-B-|-Q-| . |-B-|-N-|-R-|
>       +---+---+---+---+---+---+---+---+
>         a   b   c   d   e   f   g   h
>
>
>captured a king
>piece=6,from=8,to=0,captured=3
>ply=18
>
>       +---+---+---+---+---+---+---+---+
>    8  |<R>|<N>|<B>|<Q>|<K>|<B>|   |<R>|
>       +---+---+---+---+---+---+---+---+
>    7  |<P>|<P>|<P>|<P>|<P>|-Q-|<P>|<P>|
>       +---+---+---+---+---+---+---+---+
>    6  |   | . |   | . |   |<N>|   | . |
>       +---+---+---+---+---+---+---+---+
>    5  | . |   | . |   | . |<Q>| . |   |
>       +---+---+---+---+---+---+---+---+
>    4  |   | . |   | . |   | . |   | . |
>       +---+---+---+---+---+---+---+---+
>    3  |<P>|   | . |   | . |-N-| . |   |
>       +---+---+---+---+---+---+---+---+
>    2  |<R>|<N>|   | . |-P-|-P-|-P-|-P-|
>       +---+---+---+---+---+---+---+---+
>    1  | . |   |<N>|   |-R-|<N>| . |-R-|
>       +---+---+---+---+---+---+---+---+
>         a   b   c   d   e   f   g   h
>
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.03     -1   1. Ng1f3
>                7     4.05     -1   1. Ng1f3
>                7     4.05     -1   1. Ng1f3
>                7     4.05     -1   1. Ng1f3
>                7     4.05     -1   1. Ng1f3
>                7     4.05     -1   1. Ng1f3
>                7     4.05     -1   1. Ng1f3
>                7     4.05     -1   1. Ng1f3
>                7     4.05     -1   1. Ng1f3
>                7     4.05     -1   1. Ng1f3
>                7     4.05     -1   1. Ng1f3
>
><snip>
>
>This continues to count up. It appears to be an endless loop.
>
>What is wrong with my position.lrn that was generated strictly with the same
>version? The position.bin, and position.lrn after the "import position.dat" are
>close to the same sizes after playing the games.
>
>I can reproduce the error above. Play a bunch (2k) of games. Delete lrn., bin.
>Import the learn. This is even without castling status errors. It still happens.
>
>Joshua Haglund
>toneewa@yahoo.com



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.