In this game two players take turns in shooting the opponent's ships. Depending on ship type, they can take two to 5 direct hits before sinking, The one to first sink all the enemy's ships is the winner.
The described features may or may not be implemented yet. See the issues to find which ones are actually there.
This game's implementation has several states: Greeting, waiting, ship placement, playing.
When unrecognized players visit the page, they are asked to provide a player's name. Only then they can proceed to the "waiting" state. Recognized visitors are greeted by name and proceed to "waiting" immediately.
To start the Phoenix app:
mix deps.get
mix ecto.create && mix ecto.migrate
npm install
mix phoenix.server
Now you can visit localhost:4000
from your browser.
Free Software is awesome. Thanks to: