Beispiel #1
0
 public QueenMoveStrategy(ChessBoard board) : base(board)
 {
     DiagonalStrategies = new DiagonalMoveStrategy(board);
     RowStrategies      = new RowMoveStrategy(board);
     ColumnStrategies   = new ColumnMoveStrategy(board);
 }
Beispiel #2
0
 public RookMoveStrategy(ChessBoard board) : base(board)
 {
     RowStrategies    = new RowMoveStrategy(board);
     ColumnStrategies = new ColumnMoveStrategy(board);
 }