ColorShapeLinks
An assignment for the AI course unit of the Bachelor in Videogames at Lusófona University
|
Implementation of an AI that will always lose because it takes too long to play. More...
Public Member Functions | |
FutureMove | Think (Board board, CancellationToken ct) |
Perform a move. More... | |
Implementation of an AI that will always lose because it takes too long to play.
Definition at line 14 of file LoserSleeperAIThinker.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 18 of file LoserSleeperAIThinker.cs.