Comments/Ratings for a Single Item
problems. Perhaps it is because the second move can never be a pawn move(?)
Twinmove Chess (compulsory) and Twinmove Chess (uncompelled)
My pawn promotion code is like this:
  if and var legal and equal rankname dest 8 not or equal Q space dest
    or equal R space dest or equal B space dest equal N space dest;
       askpromote Q R B N;
  endif;
  continuemove;
/Mats
It looks like the original version is having the same problem with Pawn promotion, and I didn't notice it before, because without the ability to do all moves with the mouse, it wasn't as easy to test. The problem seems to be with how I have it replay the moves. I was using the MOVE: command once for a pair of moves (the pawn move and its promotion) instead of using it individually for each move it needed to replay. When I get more time, I'll fix it. The new version I'm working on is at http://play.chessvariants.org/pbm/play.php?game=Extra+Move+Chess&settings=default.
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.
4 comments displayed
Permalink to the exact comments currently displayed.