Skip to content

Class diagram in case it’s useful #121

@mrmanc

Description

@mrmanc

Found this from last time we ran the workshop. No idea if it will be useful.

classDiagram
    class Game {
        -List<Player> players
        -List<String> playerNames
        -List<Integer> playerPlaces
        -List<Integer> playerPurses
        -List<Boolean> playerInPenaltyBox
        -List<String> popQuestions
        -List<String> scienceQuestions
        -List<String> sportsQuestions
        -List<String> rockQuestions
        -int currentPlayer
        -boolean isGettingOutOfPenaltyBox
    }
    class QuestionCategory {
        -String name
    }
    class QuestionBank {
        -List <Question> questions
    }
    class Question {
        - String questionText
    }
    class Board {
        -List <QuestionCategory> places

    }
    QuestionBank --* Question
    Board --* QuestionCategory
    Game --* Player
    Question *-- QuestionCategory
    class Player {
        -int purse
        -String name
        -int position
        -boolean inPenalty
        +isWinner()
    }

Loading

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions