Merge branch 'main' of git.andr3h3nriqu3s.com:andr3/distributed_system_coursework
This commit is contained in:
commit
6d929a347f
@ -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?
|
#### Questions?
|
||||||
|
Reference in New Issue
Block a user