Skip to content

Commit

Permalink
Shorter outcome strings for Chess960.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 658373627
Change-Id: I32ff30afef62ce9843e7591cdbd69ac6a604ab8a
  • Loading branch information
lanctot committed Aug 2, 2024
1 parent 3cdecf7 commit b9b6cc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions open_spiel/games/chess/chess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit b9b6cc0

Please sign in to comment.