Run rails server and enjoy the game under http://localhost:3000
(default).
- Only two players are allowed in-game.
- The placement of ships is randomly generated.
- As long as you hit enemy ships it's your turn.
- If you miss, it's opponent's turn.
- You will be notified when the ship sunk.
- Game is done when you sunk all opponent's ships or opponent sunk yours.
- Light blue bar displaying game information
- 'Copy url' button - copies current game's url.
- 'New game' button - creates a new game.
- 'Statistics' button - points to a page with statistics about the current game.
- Current player's board with statistics.
- Opponent's board with statistics.
- To start a game, you need to open a web page with a game.
- Game is created and the player's ships are automatically generated on board.
- To make the first move, you need to wait for the opponent to join the game. To test it locally you can join the game from another browser.
- Click 'Copy url' and pass copied url to the opponent you want to play with.
- You will be notified when the opponent connects to the game and the game begins.
- The first player is starting the game.
- All moves are remembered, so knowing the game address you can re-join at any time.
The game statistics page contains information about players' moves, like:
- a number of hits on ships,
- a number of no hits on ships,
- a number of sunken ships.