Skip to content

Instantly share code, notes, and snippets.

@b3an5
Last active December 4, 2018 21:42
Show Gist options
  • Save b3an5/f0426721d3cfaf6d25cfaf19e5d7e38f to your computer and use it in GitHub Desktop.
Save b3an5/f0426721d3cfaf6d25cfaf19e5d7e38f to your computer and use it in GitHub Desktop.

class draft

Game class

  • init game method
  • end game method
  • start round method
  • end round method
  • restart game method

Board class

  • places the clues and category to the right div
  • if clue been played method

Player class

  • players name
  • players score

Round class

  • slice the category from the data set
  • randomize the clues
  • multiplier
  • subclass for round three

Clue class

  • display the clue
  • check the answer
  • takes player input
  • subclass for daily double

game runs the game and guides the class to when to be use. round number is updated based on game. board is populated based on round. clue is placed on board and updates the player score. winner is chosen based on player score and round number > 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment