From 3756ecd1de73169f9eee32a65d35fab76abb212f Mon Sep 17 00:00:00 2001 From: Ole Daniel Evensen Date: Wed, 24 Nov 2010 14:23:41 +0100 Subject: Player discards after chi. --- server/standard.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/standard.cpp b/server/standard.cpp index 015308d..4b54c37 100644 --- a/server/standard.cpp +++ b/server/standard.cpp @@ -267,6 +267,10 @@ State& Standard::round_update() { num_player_actions++; } + if(num_player_actions == 0) { + draw_phase = true; + } + return game_state; } @@ -388,6 +392,12 @@ bool Standard::round_action(Action action) { count++; } + Action discard; + discard.type = Action::Discard; + discard.player = action.player; + game_state.possible_actions.push_back(discard); + + draw_phase = false; } break; -- cgit v1.2.3