From b9b6cc0b9d6bdc6f70357666b0e1a325ab5247f6 Mon Sep 17 00:00:00 2001 From: Marc Lanctot Date: Thu, 1 Aug 2024 12:58:23 +0000 Subject: [PATCH] Shorter outcome strings for Chess960. PiperOrigin-RevId: 658373627 Change-Id: I32ff30afef62ce9843e7591cdbd69ac6a604ab8a --- open_spiel/games/chess/chess.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/open_spiel/games/chess/chess.cc b/open_spiel/games/chess/chess.cc index 80acbe2047..f683ecaef3 100644 --- a/open_spiel/games/chess/chess.cc +++ b/open_spiel/games/chess/chess.cc @@ -368,8 +368,7 @@ std::string ChessState::ActionToString(Player player, Action action) const { // Chess960 has an initial chance node. SPIEL_CHECK_GE(action, 0); SPIEL_CHECK_LT(action, 960); - return absl::StrCat("Chance node outcome ", action, ": ", - ParentGame()->Chess960LookupFEN(action)); + return absl::StrCat("ChanceNodeOutcome_", action); } Move move = ActionToMove(action, Board()); return move.ToSAN(Board());