Mancala.hpp
A simple Malcala game state handler.
-
class Mancala
- #include <Mancala.hpp>
Public Types
-
using move_t = size_t
Public Functions
-
inline Mancala(bool A_first = true)
-
inline ~Mancala()
-
inline void Reset(bool A_first = true)
-
inline size_t GetA(size_t i) const
-
inline size_t GetB(size_t i) const
-
inline bool IsDone() const
-
inline bool IsMoveValid(size_t move) const
-
inline size_t GetCurPlayer() const
-
inline bool IsTurnA() const
-
inline bool IsTurnB() const
-
inline size_t ScoreA() const
-
inline size_t ScoreB() const
-
inline double GetScore(size_t player)
Private Functions
-
inline void TestOver()
-
using move_t = size_t