Classic game of Battleship:
https://en.wikipedia.org/wiki/Battleship_%28game%29
- Both players can use the right side of the game to try hitting on opponent' ships.
- Hits are marked with "red" color.
- Misses are marked with "blue" (water).
- Ship blocks are marked with "grey" color.
git clone
bundle install
rake db:create db:migrate db:seed
rails s
- Access the homepage and choose a player: https://battleship-demo.herokuapp.com/
- Player 1: https://battleship-demo.herokuapp.com/games/1
- Player 2: https://battleship-demo.herokuapp.com/games/2
- Restart database:
heroku pg:reset DATABASE_URL
- Populate initial data:
heroku run rake db:migrate db:seed