Mancala.hpp
A simple mancala game state handler.
This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2016-2021 Michigan State University MIT Software license; see doc/LICENSE.md
Defines
-
INCLUDE_EMP_GAMES_MANCALA_HPP_GUARD
-
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