dumbo
A fun little game engine.
 All Classes
Public Member Functions | Public Attributes | List of all members
dumbo::tic::Board Class Reference
Inheritance diagram for dumbo::tic::Board:
dumbo::core::GameState< Square >

Public Member Functions

 Board (bool my_turn=true)
 
std::vector< SquareLegalMoves () const
 
Square RandomMove () const
 
bool NextState (const Square &move, GameState *next_state) const
 
bool IsTerminal (double *win) const
 
bool IsMyTurn () const
 
bool operator== (const GameState< Square > &rhs) const
 
void Render () const
 
- Public Member Functions inherited from dumbo::core::GameState< Square >
virtual bool NextState (const Square &move, GameState *next_state) const =0
 
bool IsMyTurn () const
 
virtual bool operator== (const GameState< Square > &rhs) const =0
 

Public Attributes

 my_turn
 

Additional Inherited Members

- Protected Member Functions inherited from dumbo::core::GameState< Square >
 GameState (bool my_turn=true)
 
- Protected Attributes inherited from dumbo::core::GameState< Square >
bool my_turn_
 
- Static Protected Attributes inherited from dumbo::core::GameState< Square >
static std::random_device rd_
 
static std::default_random_engine rng_
 

Detailed Description

Definition at line 56 of file board.h.

Member Data Documentation

dumbo::tic::Board::my_turn
Initial value:
{}
Board(const std::unordered_set<Square, Square::Hasher>& occupied_squares,
bool my_turn = true)

Definition at line 59 of file board.h.


The documentation for this class was generated from the following files: