Skip to content

Instantly share code, notes, and snippets.

@w3cj
Created August 18, 2018 14:46
Show Gist options
  • Save w3cj/c29f9fc4b06a946ef6317626c16fb77d to your computer and use it in GitHub Desktop.
Save w3cj/c29f9fc4b06a946ef6317626c16fb77d to your computer and use it in GitHub Desktop.

Front-end-opoly

How it Works

  • Local 2 Player Game
  • Player pawn choices
    • Yellow (JavaScript)
    • Red (Angular)
    • Blue (React)
    • Green (Vue)
  • The board generates based on player choices:
    • 1 "Rest from JavaScript Fatigue" square (starting point)
    • Squares with player 1 logo
    • Squares with player 2 logo
    • Face off squares
  • Game play:
    • Player rolls dice
    • Player moves forward one square up to the number rolled
    • If the player lands on their own color square: +1 Point
    • If the player lands on the oponent color square:
      • -1 Point to the Player
      • +1 Point to the Oponent
    • If the player lands on a face off square:
      • Both players roll the dice once
      • The higher roll wins the difference of the 2 rolls as points
    • If the player lands on the "Rest from JavaScript Fatigue", the player rests
  • First player to 20 points wins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment