The Players Set
Learn how the players join the game.
We'll cover the following
The :players_set
module
At this point, the second player has joined the game so we are in the :players_set
state. In the :players_set
state, the players can position and reposition their islands on the board without transitioning the state.
They can also set their islands and declare their positions that will be fixed for the rest of the game. When only one player has set their islands, the game remains in the :players_set
state. When the second player sets his islands, the game transitions to the :player1_turn
state. That’s when the game really begins.
We will focus on the transition from :players_set
to :player1_turn
and the aforementioned events.
Get hands-on with 1400+ tech skills courses.