Discover the Entities and Model the Domain
Explore how to identify and model domain entities such as boards, islands, guesses, and coordinates in Elixir. Understand how to represent game logic and support player actions like placing islands and guessing coordinates, setting a strong foundation for functional web development.
We'll cover the following...
We'll cover the following...
Represent the entities
This is the first step in designing our application. We need to identify the entities of a system and represent them with the data structures available in Elixir.
To help us out, let’s look at a picture of the game:
Explain the game
This shows what each player 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 ...