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