summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/standard.cpp10
1 files changed, 10 insertions, 0 deletions
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;