ANTWAR C++ SDK
Loading...
Searching...
No Matches
Classes | Enumerations
simulate.hpp File Reference

An integrated module for game simulation. More...

#include "game_info.hpp"
#include "control.hpp"

Go to the source code of this file.

Classes

class  Simulator
 An integrated module for simulation with simple interfaces for your convenience. Built from the game state of a Controller instance, a Simulator object allows you to simulate the whole game and "predict" the future for decision making. More...
 

Enumerations

enum  GameState { Player0Win , Player1Win , Running , Undecided }
 Enumerate values showing whether the game is running, and with detailed reasons if the game ends. More...
 

Detailed Description

An integrated module for game simulation.

Author
Jingxuan Liu, Yufei li
Date
2023-04-01

Enumeration Type Documentation

◆ GameState

enum GameState

Enumerate values showing whether the game is running, and with detailed reasons if the game ends.

Enumerator
Player0Win 

Game ends when player 0 wins the game.

Player1Win 

Game ends when player 1 wins the game.

Running 

Game is still running.

Undecided 

Game ends due to round limit exceeded. Further checking for the winner is needed.