Skip to content

Instantly share code, notes, and snippets.

@sgnl
Forked from theRemix/Rock Paper Fireball.md
Last active August 29, 2015 14:19
Show Gist options
  • Save sgnl/2f0fb03e8edcefceff95 to your computer and use it in GitHub Desktop.
Save sgnl/2f0fb03e8edcefceff95 to your computer and use it in GitHub Desktop.

Rock Paper Fireball

The Game

Rock paper fireball is a classic 2 player game.
Each player chooses either rock, paper or fireball.
The possible outcomes:

  • Rock blocks fireball.
  • Fireball engulfs paper.
  • Paper covers rock.

The game will be played in 3 phases:

  1. User makes a choice
  2. Computer makes a choice
  3. Resolve the outcome, display the results/winner

Bonus

  • Add HTML and CSS
  • Add a play again button
  • Add a score board
  • Make the computer learn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment