ColorShapeLinks AI
An AI competition for the IEEE Conference on Games 2021
|
The actual AI code of specific thinkers should be placed in classes which implement this interface. More...
Public Member Functions | |
FutureMove | Think (Board board, CancellationToken ct) |
Perform a move. More... | |
Events | |
Action< string > | ThinkingInfo |
Event raised when thinkers produce information while thinking. More... | |
The actual AI code of specific thinkers should be placed in classes which implement this interface.
FutureMove Think | ( | Board | board, |
CancellationToken | ct | ||
) |
Perform a move.
board | The game board. |
ct | A cancellation token. |
The main thread may ask the thinker to stop thinking. As such, this method should frequently test if a cancellation request was made to the cancellation token (ct ). If so, it should return immediately with no move performed, as exemplified in the following code:
Implemented in HumanThinker, HumanThinker, SequentialAIThinker, RandomMemoryHoarderThinker, RandomAIThinker, MinimaxAIThinker, BadMoveAIThinker, and AbstractThinker.
Action<string> ThinkingInfo |
Event raised when thinkers produce information while thinking.