Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class diagram in case it’s useful #121

Open
mrmanc opened this issue Feb 23, 2024 · 0 comments
Open

Class diagram in case it’s useful #121

mrmanc opened this issue Feb 23, 2024 · 0 comments

Comments

@mrmanc
Copy link
Member

mrmanc commented Feb 23, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant