示例#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);
 }