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

Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
🕸💡📝Fergus Duniho wrote on Wed, May 29 07:35 PM UTC in reply to Fergus Duniho from 04:13 PM:
// Keep all legal moves except the e Pawn's double move
set lglmvs ();
for v $legalmoves:
  if != #v "P e2-e4":
    push lglmvs #v;
  endif;
next;

setsystem legalmoves #lglmvs;

With the fix I made to unless, described here, this can all be done with one line:

setsystem legalmoves aggregate lambda (#0 unless == #0 "P e2-e4") $legalmoves;