ANTWAR C++ SDK
Loading...
Searching...
No Matches
Typedefs | Functions
template.hpp File Reference

AI Template for easy use. More...

#include "control.hpp"
#include "simulate.hpp"
#include <vector>
#include <functional>

Go to the source code of this file.

Typedefs

using AI = std::function< std::vector< Operation >(int, const GameInfo &)>
 Callback that takes player id and game info as input and returns operations.
 

Functions

static void run_with_ai (AI ai)
 Run the game with an AI that depends only on player id and game state.
 

Detailed Description

AI Template for easy use.

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

Function Documentation

◆ run_with_ai()

static void run_with_ai ( AI  ai)
static

Run the game with an AI that depends only on player id and game state.

Parameters
aiAI callback.