YY_RULE_SETUP
#line 826 "parser.l"
{\r
- /* Bughouse piece drop. No legality checking for now. */\r
+ /* Bughouse piece drop. */\r
currentMoveString[1] = '@';\r
currentMoveString[2] = yytext[2];\r
currentMoveString[3] = yytext[3];\r
\r
if (WhiteOnMove(yyboardindex)) {\r
currentMoveString[0] = ToUpper(yytext[0]);\r
- return (int) WhiteDrop;\r
} else {\r
currentMoveString[0] = ToLower(yytext[0]);\r
- return (int) BlackDrop;\r
}\r
+ return LegalityTest(boards[yyboardindex], PosFlags(yyboardindex), DROP_RANK, // [HGM] does drops now too
+ CharToPiece(currentMoveString[0]), currentMoveString[3] - ONE, currentMoveString[2] - AAA, NULLCHAR);
}\r
YY_BREAK
case 12: