An integrated module of IO and game state management with simple interfaces for your convenience....
Definition: control.hpp:24
const GameInfo & get_info() const
Get information about current game state.
Definition: control.hpp:120
bool append_self_operation(OperationType type, int arg0=-1, int arg1=-1)
Try adding an operation to "self_operations". The operation will be constructed with the given type a...
Definition: control.hpp:199
void read_round_info()
Read round information from judger and update current game state.
Definition: control.hpp:146
void apply_opponent_operations()
Apply all the operations in "opponent_operations" to current game state.
Definition: control.hpp:182
const int self_player_id
Your player ID.
Definition: control.hpp:108
void read_opponent_operations()
Read opponent's operations from judger and overwrites "opponent_operations".
Definition: control.hpp:174
void apply_self_operations()
Apply all the operations in "self_operations" to current game state.
Definition: control.hpp:223
void send_self_operations() const
Send all the operations in "self_operations" (i.e. print to stdout)
Definition: control.hpp:235
An integrated module of IO and encapsulated game state management.
An integrated module for game simulation.
A module used for game state management, providing interfaces for accessing and modifying various typ...
Definition: game_info.hpp:28
static void run_with_ai(AI ai)
Run the game with an AI that depends only on player id and game state.
Definition: template.hpp:29