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

Game Engine V1 #12

Open
bonnieli opened this issue May 19, 2020 · 0 comments
Open

Game Engine V1 #12

bonnieli opened this issue May 19, 2020 · 0 comments
Assignees
Labels

Comments

@bonnieli
Copy link
Contributor

  • Responsible for determining the next state. A game engine is essentially a class: https://dzone.com/articles/how-to-create-instantiate-a-class-in-nodejs
  • Two teams: red and blue team
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants