/battleship

Battleship game for 2 players - Build in under 5 hours as test exercise

Primary LanguageRuby

Battleship game

Classic game of Battleship:
https://en.wikipedia.org/wiki/Battleship_%28game%29

Features covered:

  • 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.

Initial setup (local development)

  • git clone
  • bundle install
  • rake db:create db:migrate db:seed
  • rails s

Live app

Additional commands:

  • Restart database: heroku pg:reset DATABASE_URL
  • Populate initial data: heroku run rake db:migrate db:seed