You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Game class that initializes a game given two players. It initializes a Board with random words from a dictionary. It also assigns roles to the players (spymaster and guesser)
The dictionary could be something that’s hard coded
Game State (Board state, whose turn it is, points)
-- Board state
-- Whose turn it is (red or blue)
-- Points (red points and blue points)
methods for next move : given a player and a move, figure out the next state and return
-- If a player makes a move (for example: guesses one word), determine the next state (for ex: dependant on a bunch of other rules)
method for determining if match is over
-- If you click on a black card
-- If you win the game (one team guesses all their words)
method for restarting
-- All the words get reshuffled again
-- Points reset to 0
The text was updated successfully, but these errors were encountered:
-- Board state
-- Whose turn it is (red or blue)
-- Points (red points and blue points)
-- If a player makes a move (for example: guesses one word), determine the next state (for ex: dependant on a bunch of other rules)
-- If you click on a black card
-- If you win the game (one team guesses all their words)
-- All the words get reshuffled again
-- Points reset to 0
The text was updated successfully, but these errors were encountered: