diff --git a/open_spiel/games/ultimate_tic_tac_toe/ultimate_tic_tac_toe.cc b/open_spiel/games/ultimate_tic_tac_toe/ultimate_tic_tac_toe.cc index 04459986d5..92edf39988 100644 --- a/open_spiel/games/ultimate_tic_tac_toe/ultimate_tic_tac_toe.cc +++ b/open_spiel/games/ultimate_tic_tac_toe/ultimate_tic_tac_toe.cc @@ -59,7 +59,7 @@ RegisterSingleTensorObserver single_tensor(kGameType.short_name); } // namespace bool UltimateTTTState::AllLocalStatesTerminal() const { - return std::any_of( + return std::all_of( local_states_.begin(), local_states_.end(), [](const std::unique_ptr& state) { return state->IsTerminal(); }); }