Skip to content

Commit

Permalink
A few public methods for checkers.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 512908162
Change-Id: I6a9ac3974e5437a124e21dece39eda4461df253b
  • Loading branch information
DeepMind Technologies Ltd authored and lanctot committed Mar 7, 2023
1 parent 4bd47a4 commit 56e53a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions open_spiel/games/checkers.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,15 @@ class CheckersState : public State {
return board_[row * columns_ + column];
}
std::vector<Action> LegalActions() const override;
int ObservationPlane(CellState state, Player player) const;
int GetRow() const { return rows_; }
int GetCollumn() const { return columns_; }
int GetCellState() const { return kCellStates; }

protected:
void DoApplyAction(Action action) override;

private:
int ObservationPlane(CellState state, Player player) const;

Player current_player_ = 0; // Player zero (White, 'o') goes first.
Player outcome_ = kInvalidPlayer;
// Piece in the board who can do multiple jump.
Expand Down

0 comments on commit 56e53a3

Please sign in to comment.