Пример #1
0
    public List <BoardPosition> GetMovableSpaces(BoardPosition startingPosition, Team team)
    {
        List <BoardPosition> returnList = new List <BoardPosition>();

        //Creates a returnlist with all spaces a rook or a bishop could move to
        returnList.AddRange(rookBehaviour.GetMovableSpaces(startingPosition, team));
        returnList.AddRange(bishopBehavior.GetMovableSpaces(startingPosition, team));

        return(returnList);
    }