Compare commits
2 Commits
b8fc3da28c
...
e3971d2ff6
Author | SHA1 | Date | |
---|---|---|---|
e3971d2ff6 | |||
aff2a496df |
@ -141,4 +141,16 @@ end
|
||||
|
||||
---
|
||||
|
||||
## Interface
|
||||
|
||||
```elixir
|
||||
receive do
|
||||
{:start_game, paticipants} -> {:new_game, game, game_state}
|
||||
{:make_move, game, participant, move} -> {:update_game, game, game_state} or {:game_finished, game}
|
||||
{:get_game_state, game} -> {:game_state, game, game_state}
|
||||
end
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
#### Questions?
|
||||
|
Reference in New Issue
Block a user