Thread: Complex Formula
View Single Post
Old 04-14-2003, 10:18 PM   PM User | #4
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
This could be extremely complex. You can't just take all the possible positions for a single piece and multiply them times all the possible positions for every other piece because some combinations wouldn't be possible to create in a game, the possible positions of the king for example would be limited depending on the positions of the other pieces. Also every single pawn has the possibility of reaching the opposite rank and therefor being promoted so you also have to deal with the possibilties of multiple queens.

In fact the pawns add tremendous complexity to the problem since they can't pass each other but through taking other peices it is possible for them to end up many ranks left or right of their initial position but only when they aren't close or next to a board edge.
Roy Sinclair is offline   Reply With Quote