Skip to content

Instantly share code, notes, and snippets.

@theRemix
Created October 2, 2014 03:36
Show Gist options
  • Save theRemix/c81b72cfe004cba879b3 to your computer and use it in GitHub Desktop.
Save theRemix/c81b72cfe004cba879b3 to your computer and use it in GitHub Desktop.
Rock Paper Fireball

Rock Paper Fireball

The Setup

  • Whiteboard the problem, discuss your solutions among your group
  • Choose one person in your group to create the Rock Paper Fireball repository on Github. This person will be known as the maintainer.
  • Each other member must fork and clone their fork of this repo.
  • You may pair program, however every member must contribute something by committing and pushing the commits.
  • Each fork will create pull requests for the maintainer to review, accept, and merge into the original repo.

The Game

Rock paper scissors 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

The game will be rendered onto an (valid html5) web page.

Bonus

  • Add graphics
  • 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