Example #1
0
        public override IEnumerable <Square> GetAvailableMoves(Board board)
        {
            var currentSquare  = board.FindPiece(this);
            var availableMoves = (List <Square>)LinearMovers.GetLateralMoves(board, this);

            availableMoves.AddRange(LinearMovers.GetDiagonalMoves(board, this));
            return(availableMoves);
        }
Example #2
0
 public override IEnumerable <Square> GetAvailableMoves(Board board)
 {
     return(LinearMovers.GetDiagonalMoves(board, this));
 }