Example #1
0
        public override IEnumerable <Square> GetAvailableMoves(Board board)
        {
            AvailableMoves moves = new AvailableMoves(board.FindPiece(this));

            moves.AddLateralSquares();
            moves.RemoveCurrentSquare();

            return(moves.Squares);
        }