예제 #1
0
파일: Bishop.cs 프로젝트: lafsar/Chess
 public Bishop(PieceColor color, ChessBoard board) : base(color, board)
 {
     MoveStrategy = new DiagonalMoveStrategy(board);
 }
예제 #2
0
 public QueenMoveStrategy(ChessBoard board) : base(board)
 {
     DiagonalStrategies = new DiagonalMoveStrategy(board);
     RowStrategies      = new RowMoveStrategy(board);
     ColumnStrategies   = new ColumnMoveStrategy(board);
 }