Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public override IEnumerable <Square> GetAvailableMoves(Board board)
 {
     return(LinearMovers.GetDiagonalMoves(board, this));
 }