ColorShapeLinks
An assignment for the AI course unit of the Bachelor in Videogames at Lusófona University
|
Implementation of an AI that will play randomly. More...
Public Member Functions | |
RandomAIThinker () | |
Create a new instance of RandomIAThinker. More... | |
FutureMove | Think (Board board, CancellationToken ct) |
Perform a move. More... | |
Implementation of an AI that will play randomly.
Definition at line 14 of file RandomAIThinker.cs.
|
inline |
Create a new instance of RandomIAThinker.
Definition at line 22 of file RandomAIThinker.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 29 of file RandomAIThinker.cs.