Skip to content

Instantly share code, notes, and snippets.

@ericweissman
Last active December 4, 2018 23:24
Show Gist options
  • Save ericweissman/ff275619f4994251917658a14feaffbe to your computer and use it in GitHub Desktop.
Save ericweissman/ff275619f4994251917658a14feaffbe to your computer and use it in GitHub Desktop.

Game Class <= does this need to keep track of our players too?

  • players = [player1, player2, player3] <= as array? as objects? do we even need?
  • rounds = 4
  • currRound = 1
  • bonusRoundConsonants = r,s,t,l,e <= does this need to live here? or, could we add to startFinalRound()
  • puzzles = [puzzle1, puzzle2...puzzle4]
  • wheels = [wheel1, wheel2...wheel4]
  • bonusPuzzle = bonusPuzzle <= is this where we should handle bonus puzzle? Or better as child of Puzzle class?
  • bonusWheel = bonusWheel <= is this where we should handle bonus wheel? Or better as Wheel class?
  • startGame()
  • changeRounds()
  • declareWinner()
  • startBonusRound()
  • exitGame()

Wheel Class

  • values = [val1, val2...val6] <= pulled from wheel dataset

Class Child extends Wheel (Bonus Wheel)

  • bonusValues = [val1, val2...val6] <= can we just hardcode in because we want the prizes to be much bigger?

Player Class

  • name = name

  • turn = false

  • roundPoints = 0

  • bank = 0

  • spin()

  • guessLetter()

  • solve()

  • buyVowel()

Puzzle Class

  • category = category
  • answer = answer
  • totalNumLetters = x
  • totalNumWords = x
  • numLettersInFirstWords = x

Class bonusPuzzle extends Puzzle

  • category = category
  • answer = answer
  • totalNumLetters = x
  • totalNumWords = x
  • numLettersInFirstWords = x
  • lettersGiven = r, s, t, l, n, e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment