wemmm / rps-challenge

Create the Rock Paper Scissors Game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rock, Paper, Scissors

Makers Academy Week 3 Weekend Challenge

A picture

What it Does

A web app for playing Rock, Paper, Scissors.

How to Use

  1. Clone the directory to your machine.
  2. Install the relevent gems using bundle install
  3. Navigate to the /app folder from the command line.
  4. Run the app with ruby app.rb
  5. Use a browser to go to localhost/4567 (or specified port)
  6. Input name and choice, then submit.
  7. You will be redirected to the outcome of the round.
  8. Play another round by clicking play again?
  9. The game will keep track of your name, total wins, total losses and draws!
  10. Maximum gaming enjoyment is now yours.

My Approach

A diagram

Additional Things

I had a really tough time setting up Sinatra and the structure for the web app! The more complex structure also caused me some issues with debugging, with one particularly annoying glitch taking me a full two hours to resolve. This had quite a major effect on my time management, so as of my pull request there's very little game logic in the code. It's a bank holiday tomorrow so I'm going to aim to get the game fully functional and possibly even looking good with a bit of CSS before Tuesday.

I'm quite happy that I managed to 'kill the global variable' by using class instance variables, and even though I'm not entirely happy with my rate of progress, I am satisfied that I managed to overcome a lot of bugs and roadblocks over the weekend I spent working on this!

BANK HOLIDAY UPDATE: The game logic actually works now! The game can be played and replayed and even keeps a running total of all the results from the current instance.

About

Create the Rock Paper Scissors Game

License:Other


Languages

Language:Ruby 65.2%Language:HTML 26.5%Language:CSS 8.3%