We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e9e2a commit 80d86cfCopy full SHA for 80d86cf
1 file changed
open_spiel/games/social_deduction/social_deduction.cc
@@ -151,10 +151,9 @@ Player SocialDeductionState::CurrentPlayer() const {
151
152
std::vector<Action> SocialDeductionState::LegalActions() const {
153
if (IsTerminal()) return {};
154
- if (phase_ == Phase::kAssignRoles) {
155
- return RoleAssignments(num_players_, parent_game_.NumImposters());
+ if (phase_ == Phase::kAssignRoles || phase_ == Phase::kObservation) {
+ return LegalChanceOutcomes();
156
}
157
- if (phase_ == Phase::kObservation) return ObservationSignals(alive_);
158
159
std::vector<Action> actions;
160
if (phase_ == Phase::kCommunication) {
0 commit comments