fixed problem found in review
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
47c040e75f
commit
3d835aad6c
@ -140,13 +140,13 @@ defmodule Server do
|
||||
state = qurey_status(state)
|
||||
game = state.games[game_id]
|
||||
cond do
|
||||
game.modified ->
|
||||
safecast(pid_to_inform, {:make_move, game_id, :player_moved_before, game.game_state, game.hand})
|
||||
set_modifed(state, game_id)
|
||||
is_finished(game, game_id) ->
|
||||
{_, score} = state.games[game_id]
|
||||
safecast(pid_to_inform, {:make_move, game_id, :game_finished, score})
|
||||
state
|
||||
game.modified ->
|
||||
safecast(pid_to_inform, {:make_move, game_id, :player_moved_before, game.game_state, game.hand})
|
||||
set_modifed(state, game_id)
|
||||
true ->
|
||||
try_to_play(state, game_id, move, pid_to_inform)
|
||||
end
|
||||
|
Reference in New Issue
Block a user