Check out Atomic Chess, our featured variant for November, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Extra Move Chess. Move twice per turn with Extra Move Chess.[All Comments] [Add Comment or Rating]
🕸💡📝Fergus Duniho wrote on Fri, Dec 31, 2010 01:21 AM UTC:

The new preset is now finished, and it has replaced the old one on this page. Aside from allowing mouse movement for both moves, it differs from the old preset by requiring the use of pass to indicate a passed move, though this requirement only applies to the latest move made in a game. There were also some bugs in the old preset that got fixed in this one. To fix these bugs, I had to extensively rewrite the old code. For anyone who wants to apply what I did here to programming other double move variants, here is how it works. Before the moves are made, the current board configuration gets stored, and after the moves are made, it gets restored, effectively undoing all the moves. This allows it to do one move at a time, evaluating its legality before performing the next move. To replay moves, it first puts all the moves into an array. It then goes through this array, one move at a time, using the eval command to replay each move.