Author: Uri Blass
Date: 15:06:56 11/04/02
Go up one level in this thread
On November 04, 2002 at 17:22:24, David Hanley wrote: > > >>Most people therefore use loads of asserts to check for example: >> assert(sq-5); > >Why are you asserting sq != 5 > >? I do not have sq-5 but I have lines like if (info[candidate.b.to-8]!=EMPTA) return 0; I have it in the function that checks if a move is legal(I still do not use that function because I did not complete the case when the side to move is in check but I may use it in the future in order to save generating all the moves when there is a hash hit and I do not want to take the risk of hash collision because trying to make one illegal move may lead to a crush and even if it something rare it is not acceptable) I can accept hash collision that means searching in rare cases the wrong move as the first move but not searching illegal moves. Uri
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.