Discover the Entities and Model the Domain
This is the very first step in designing our application. We need to identify the entities of a system and represent them with the data structures we have available in Elixir.
To help us out, let’s look at a picture of the game:
This shows what each of the players would see as they play. On the left is a view of their own board where players place their islands. The coordinates that make up the islands are the color of sand. When the player’s opponent guesses correctly and hits an island, the coordinate the opponent hits will turn green. If all the coordinates that make up an island are hit, the island ...
Get Functional Web Development with Elixir, OTP, and Phoenix now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.