ColorShapeLinks
An assignment for the AI course unit of the Bachelor in Videogames at Lusófona University
|
Implementation of an AI that will always play in sequence, from the first to the last column. It will start by spending all round pieces, and only then start using the square pieces. More...
Public Member Functions | |
FutureMove | Think (Board board, CancellationToken ct) |
Perform a move. More... | |
Implementation of an AI that will always play in sequence, from the first to the last column. It will start by spending all round pieces, and only then start using the square pieces.
Definition at line 15 of file SequentialAIThinker.cs.
|
inline |
Perform a move.
board | The game board. |
ct | A cancellation token. |
The main thread may ask the AI 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:
Implements IThinker.
Definition at line 22 of file SequentialAIThinker.cs.