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()
}
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() }