Skip to content

Commit

Permalink
Merge pull request #1308 from google-deepmind:lanctot-patch-62
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 728171904
Change-Id: I0eee6c6019352ddb425ed08ee3e027bdc2e2c714
  • Loading branch information
lanctot committed Feb 18, 2025
2 parents d1dcdf5 + 42f799a commit f4699df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions open_spiel/games/dark_hex/dark_hex.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ std::string DarkHexState::ViewToString(Player player) const {

for (int r = 0; r < num_rows_; ++r) {
for (int c = 0; c < num_cols_; ++c) {
absl::StrAppend(
&str, StateToString(cur_view[r * num_cols_ + c], state_.StringRep()));
absl::StrAppend(&str, StateToString(cur_view[r * num_cols_ + c],
state_.string_rep()));
}
if (r < (num_rows_ - 1)) {
absl::StrAppend(&str, "\n");
Expand Down
2 changes: 1 addition & 1 deletion open_spiel/games/hex/hex.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class HexState : public State {

CellState BoardAt(int cell) const { return board_[cell]; }
void ChangePlayer() { current_player_ = current_player_ == 0 ? 1 : 0; }
StringRep StringRep() const { return string_rep_; }
StringRep string_rep() const { return string_rep_; }

protected:
std::vector<CellState> board_;
Expand Down

0 comments on commit f4699df

Please sign in to comment.