Author: Robert Hyatt
Date: 07:04:18 11/10/05
Go up one level in this thread
On November 10, 2005 at 06:40:17, Camp Troll wrote: >My computer is Intel Pentium3 1GHz, 256MB, OS is XP pro. >I used default hash table size. >I used Visual Studio 6.0 to compile. >I added 2 lines to the top of chess.h. >#define NT_i386 >#define NOEGTB >And I inserted >Print(4095, "Illegal hash move i = %d %s\n", i, OutputMove(tree, >tree->hash_move[i],i,wtm)); What is the purpose of this line of code? The if() test at the top fails if hash_move[i] is zero, which is perfectly legal. And you then output that error message with a zero move which does not print as anything. Here is the test that has to fail for your Print() to be executed: if (tree->hash_move[i] && LegalMove(tree, i, wtm, tree->hash_move[i])) { So if hash_move[i] is zero, it will fail. And there are plenty of cases where this happens normally... If hash_move[i] is non-zero, then I legality-check it before using it. But in your case, it is zero to start with... >at line number 674 in utility.c of Crafty 20.1. >That is all I changed to your source code. >I started from initial chess position. >I can send you exe file and source code if you can not see problem. >This is Crafty log file. >--------------------------------------------------------------------------- > >Crafty v20.1 > >White(1): ponder off >pondering disabled. >White(1): book off >book file disabled. >White(1): st 30 >search time set to 30.00. >White(1): go > clearing hash tables > time surplus 0.00 time limit 30.00 (+0.00) (30.00) > depth time score variation (1) >Illegal hash move i = 10 null > 10 29.83 0.14 1. e4 e5 2. Nc3 Nf6 3. Nf3 Bb4 4. a3 > Bxc3 5. dxc3 O-O 6. Bg5 > time=30.37 mat=0 n=2126629 fh=89% nps=70K > ext-> chk=38240 cap=13366 1rep=1996 mate=2 > predicted=0 nodes=2126629 evals=1603925 50move=0 > endgame tablebase-> probes=0 hits=0 > hashing-> 28%(raw) 25%(depth) 90%(sat) 5201864%(pawn) > hashing-> 0%(exact) 13%(lower) 0%(upper) > >White(1): e4 > time used: 30.37 > > +---+---+---+---+---+---+---+---+ > 8 |<R>|<N>|<B>|<Q>|<K>|<B>|<N>|<R>| > +---+---+---+---+---+---+---+---+ > 7 |<P>|<P>|<P>|<P>|<P>|<P>|<P>|<P>| > +---+---+---+---+---+---+---+---+ > 6 | | . | | . | | . | | . | > +---+---+---+---+---+---+---+---+ > 5 | . | | . | | . | | . | | > +---+---+---+---+---+---+---+---+ > 4 | | . | | . |-P-| . | | . | > +---+---+---+---+---+---+---+---+ > 3 | . | | . | | . | | . | | > +---+---+---+---+---+---+---+---+ > 2 |-P-|-P-|-P-|-P-| |-P-|-P-|-P-| > +---+---+---+---+---+---+---+---+ > 1 |-R-|-N-|-B-|-Q-|-K-|-B-|-N-|-R-| > +---+---+---+---+---+---+---+---+ > a b c d e f g h > >Black(1): go > clearing hash tables > time surplus 0.00 time limit 30.00 (+0.00) (30.00) > depth time score variation (1) >Illegal hash move i = 10 null > 10 28.92 0.17 1. ... e5 2. Nf3 Nf6 3. Nxe5 Qe7 4. > d4 d6 5. Nf3 Qxe4+ 6. Kd2 Kd8 > time=30.24 mat=0 n=2088172 fh=90% nps=69K > ext-> chk=41597 cap=11799 1rep=1799 mate=12 > predicted=0 nodes=2088172 evals=1611265 50move=0 > endgame tablebase-> probes=0 hits=0 > hashing-> 31%(raw) 29%(depth) 88%(sat) 5201864%(pawn) > hashing-> 0%(exact) 11%(lower) 0%(upper) > >Black(1): e5 > time used: 30.24 > > +---+---+---+---+---+---+---+---+ > 8 |<R>|<N>|<B>|<Q>|<K>|<B>|<N>|<R>| > +---+---+---+---+---+---+---+---+ > 7 |<P>|<P>|<P>|<P>| . |<P>|<P>|<P>| > +---+---+---+---+---+---+---+---+ > 6 | | . | | . | | . | | . | > +---+---+---+---+---+---+---+---+ > 5 | . | | . | |<P>| | . | | > +---+---+---+---+---+---+---+---+ > 4 | | . | | . |-P-| . | | . | > +---+---+---+---+---+---+---+---+ > 3 | . | | . | | . | | . | | > +---+---+---+---+---+---+---+---+ > 2 |-P-|-P-|-P-|-P-| |-P-|-P-|-P-| > +---+---+---+---+---+---+---+---+ > 1 |-R-|-N-|-B-|-Q-|-K-|-B-|-N-|-R-| > +---+---+---+---+---+---+---+---+ > a b c d e f g h > >White(2): go > clearing hash tables > time surplus 0.00 time limit 30.00 (+0.00) (30.00) > depth time score variation (1) >Illegal hash move i = 8 null > 9-> 19.14 0.11 2. Nc3 Nf6 3. Nf3 Bb4 4. Nxe5 d6 5. > Nd3 Bxc3 6. dxc3 Nxe4 > time=30.28 mat=0 n=2089626 fh=91% nps=69K > ext-> chk=40563 cap=11380 1rep=1776 mate=20 > predicted=0 nodes=2089626 evals=1640666 50move=0 > endgame tablebase-> probes=0 hits=0 > hashing-> 31%(raw) 29%(depth) 88%(sat) 5201864%(pawn) > hashing-> 0%(exact) 11%(lower) 0%(upper) > >White(2): Nc3 > time used: 30.28 > > +---+---+---+---+---+---+---+---+ > 8 |<R>|<N>|<B>|<Q>|<K>|<B>|<N>|<R>| > +---+---+---+---+---+---+---+---+ > 7 |<P>|<P>|<P>|<P>| . |<P>|<P>|<P>| > +---+---+---+---+---+---+---+---+ > 6 | | . | | . | | . | | . | > +---+---+---+---+---+---+---+---+ > 5 | . | | . | |<P>| | . | | > +---+---+---+---+---+---+---+---+ > 4 | | . | | . |-P-| . | | . | > +---+---+---+---+---+---+---+---+ > 3 | . | |-N-| | . | | . | | > +---+---+---+---+---+---+---+---+ > 2 |-P-|-P-|-P-|-P-| |-P-|-P-|-P-| > +---+---+---+---+---+---+---+---+ > 1 |-R-| |-B-|-Q-|-K-|-B-|-N-|-R-| > +---+---+---+---+---+---+---+---+ > a b c d e f g h > >Black(2): go > clearing hash tables > time surplus 0.00 time limit 30.00 (+0.00) (30.00) > depth time score variation (1) > 9-> 17.05 0.11 2. ... Nf6 3. Nf3 Nc6 4. Bb5 Bb4 5. > Bxc6 dxc6 6. d3 Bxc3+ 7. bxc3 Bg4 8. > O-O Bxf3 9. Qxf3 > time=30.37 mat=0 n=2064832 fh=91% nps=67K > ext-> chk=31617 cap=12845 1rep=1154 mate=28 > predicted=0 nodes=2064832 evals=1643243 50move=1 > endgame tablebase-> probes=0 hits=0 > hashing-> 33%(raw) 31%(depth) 85%(sat) 5201864%(pawn) > hashing-> 0%(exact) 11%(lower) 0%(upper) > >Black(2): Nf6 > time used: 30.37 > > +---+---+---+---+---+---+---+---+ > 8 |<R>|<N>|<B>|<Q>|<K>|<B>| |<R>| > +---+---+---+---+---+---+---+---+ > 7 |<P>|<P>|<P>|<P>| . |<P>|<P>|<P>| > +---+---+---+---+---+---+---+---+ > 6 | | . | | . | |<N>| | . | > +---+---+---+---+---+---+---+---+ > 5 | . | | . | |<P>| | . | | > +---+---+---+---+---+---+---+---+ > 4 | | . | | . |-P-| . | | . | > +---+---+---+---+---+---+---+---+ > 3 | . | |-N-| | . | | . | | > +---+---+---+---+---+---+---+---+ > 2 |-P-|-P-|-P-|-P-| |-P-|-P-|-P-| > +---+---+---+---+---+---+---+---+ > 1 |-R-| |-B-|-Q-|-K-|-B-|-N-|-R-| > +---+---+---+---+---+---+---+---+ > a b c d e f g h > >White(3): info >Crafty version 20.1 >hash table memory = 3M bytes. >pawn hash table memory = 1M bytes. >60 moves/30 minutes 0 seconds primary time control >30 moves/15 minutes 0 seconds secondary time control >frequency (freq)..............1.00 >static evaluation (eval)......0.50 >learning (learn)..............1.00 >CAP (CAP score)...............0.70 >White(3): q
This page took 0.01 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.