Full detection of repeated positions (including turn)
-Debug HalfChess
-Implement UltimaChess
+In UltimaChess, consider these rules modifications: http://www.inference.org.uk/mackay/ultima/ultima.html
V.steps[V.ROOK].concat(V.steps[V.BISHOP]), "oneStep");
}
- // TODO: verify this assertion
- atLeastOneMove()
- {
- return true; //always at least one possible move
- }
-
underCheck(move)
{
return false; //there is no check
return "1/2";
const color = this.turn;
- // TODO: do we need "atLeastOneMove()"?
if (this.atLeastOneMove() && this.kingPos[color][0] >= 0)
return "*";
checkGameEnd()
{
- // No valid move: our king disappeared
+ // Stalemate, or our king disappeared
return this.turn == "w" ? "0-1" : "1-0";
}