A simple JavaScript racer game using Sinatra application. The game still runs in a single browser instance, i.e., two players don't play each other across different browsers, but rather on a single browser. It also has a database that records game results.
The flow goes like this:
- Two people get on a computer and visit the application
- The application prompts each player to enter their name
- The players fill out the form and this creates a new game
- The new game starts, and each player smashes their respective key until one of them wins
- After one of them wins, the winning player and amount of time it took to win is sent to the server and the game is recorded as being "done"
- The players can choose to start another game using their same initials, or restart using different initials
- After a game is finished the players are given a unique URL at which they can view the results of that particular game
##Instructions:
- clone this directory
- run 'bundle install' in the terminal from the root directory
- run 'be rake db:create' in the terminal from the root directory
- run 'be rake db:migrate' in the terminal from the root directory
- run 'be rake db:seed' in the terminal from the root directory
- run 'be shotgun' in the terminal from the root directory
- open 'http://localhost:9393/' in your browser
- Player 1 press 'A' to progress. Player 2 press 'L' to progress.