Author: Gareth McCaughan
Date: 09:49:50 06/29/99
Go up one level in this thread
I wrote: >/* Pieces. A piece is a function void -> int. It does two things: > * (1) sets ZZ to a value related to the piece's name > * (2) return 0 if and only if it's legal to move that kind of > * piece from square |from| by (v,w). [CHECK DETAILS] Oops. I put that [CHECK DETAILS] in while I was looking at the code, as a reminder to check that what I was saying was right. It is. v,w are the changes in rank,file, of course. > * to_move is +1/-1 according to whose move it is, and J is the I renamed |J| to |to|.
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.