Game Engine¶
-
class
battleground.game_engine.
GameEngine
(num_players, type, **kwargs)[source]¶ This is an interface for the game engine class. An engine for a specific game should implement these functions.
-
get_current_player
()[source]¶ This is used by the game runner to determine which player should make the next move
Returns: (int) index of the current player in the players list of the GameRunner
-