Commit df99fa37 authored by Romain DUPONT's avatar Romain DUPONT
Browse files

fixing the boolean problem

parent 09b03b19
......@@ -142,7 +142,10 @@ export function knightMove(board: Chessboard, move: Move): boolean {
(((Math.abs(move.to!.rank - move.from!.rank) == 1 && Math.abs(move.to!.file - move.from!.file) == 2) ||
(Math.abs(move.to!.rank - move.from!.rank) == 2 && Math.abs(move.to!.file - move.from!.file) == 1))) && (isEmpty(board, move.to!) || isEatPossible(board, move)));
}
}
/*let whitePlay : boolean = true;
function round(color:boolean)*/
......@@ -189,6 +192,7 @@ function rankFileMove(board: Chessboard, move: Move): boolean {
return false;
}
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment