Beispiel #1
0
 public override bool validMove(ChessBoard board, Coords start, Coords end)
 {
     return(StraightLines(board, start, end) || DiagonalMoves(board, start, end));
 }
Beispiel #2
0
 public override bool validMove(ChessBoard board, Coords start, Coords end)
 {
     return(KingMoves(board, start, end));
 }