Author: Russell Reagan
Date: 20:08:48 10/23/03
Go up one level in this thread
On October 23, 2003 at 22:24:38, Vincent Diepeveen wrote: >>>What i also do avoid in diep is writing out code for black and white. I have >>>neat loops there where easily possible: >>> for( side = 0 ; side <= 2; side++ ) >> >>Pawns always break symmetry anyway, so it doesn't work 100%. > >Not sure whether there's already snow falling in your country, hiding the shape >of the board, but mine is 8x8, so that's mirrorable in 2 ways at least. > >So with a bit of good coding 1 pattern can be used 4 times here and you write >down it 4 times. > >Good luck. If you used C++ you could use templates and write it once and use it however many different ways you'd like, and it will be resolved at compile time, unlike your loops.
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.