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