return (int) IllegalMove;\r
\r
result = LegalityTest(boards[yyboardindex],\r
- PosFlags(yyboardindex), EP_UNKNOWN,\r
+ PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.!\r
+ EP_UNKNOWN,\r
initialRights, /* [HGM] assume all castlings allowed */\r
currentMoveString[1] - ONE,\r
currentMoveString[0] - AAA,\r
return 0;\r
\r
result = LegalityTest(boards[yyboardindex],\r
- PosFlags(yyboardindex), EP_UNKNOWN,\r
+ PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.!\r
+ EP_UNKNOWN,\r
initialRights, /* [HGM] assume all castlings allowed */\r
currentMoveString[1] - ONE,\r
currentMoveString[0] - AAA,\r
}\r
\r
result = LegalityTest(boards[yyboardindex],\r
- PosFlags(yyboardindex), EP_UNKNOWN,\r
+ PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.!\r
+ EP_UNKNOWN,\r
initialRights, /* [HGM] assume all castlings allowed */\r
currentMoveString[1] - ONE,\r
currentMoveString[0] - AAA,\r
}\r
\r
result = LegalityTest(boards[yyboardindex],\r
- PosFlags(yyboardindex), EP_UNKNOWN,\r
+ PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.!\r
+ EP_UNKNOWN,\r
initialRights, /* [HGM] assume all castlings allowed */\r
currentMoveString[1] - ONE,\r
currentMoveString[0] - AAA,\r
fprintf(debugFP, "long castling %d %d\n", ff, ft);\r
}\r
return (int) LegalityTest(boards[yyboardindex],\r
- PosFlags(yyboardindex), EP_UNKNOWN,\r
+ PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: e.p.!\r
+ EP_UNKNOWN,\r
castlingRights[yyboardindex], /* [HGM] use true castling rights */\r
rf, ff, rt, ft, NULLCHAR);\r
}\r
}\r
\r
return (int) LegalityTest(boards[yyboardindex],\r
- PosFlags(yyboardindex), EP_UNKNOWN,\r
+ PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: e.p.!\r
+ EP_UNKNOWN,\r
castlingRights[yyboardindex], /* [HGM] use true castling rights */\r
rf, ff, rt, ft, NULLCHAR);\r
}\r