ColorShapeLinks AI
An AI competition for the IEEE Conference on Games 2021
|
Represents a human thinker, for testing purposes. More...
Public Member Functions | |
override string | ToString () |
Name of the human player. More... | |
FutureMove | Think (Board board, CancellationToken ct) |
Perform a move. More... | |
Static Public Attributes | |
const string | Name = "Human" |
Name of the human player. More... | |
Events | |
Action< string > | ThinkingInfo |
Event raised when thinkers produce information while thinking. More... | |
Events inherited from IThinker | |
Action< string > | ThinkingInfo |
Event raised when thinkers produce information while thinking. More... | |
Represents a human thinker, for testing purposes.
|
inline |
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:
InvalidOperationException | Thrown when this method is invoked. |
Implements IThinker.
override string ToString | ( | ) |
Name of the human player.
|
static |
Name of the human player.
Action<string> ThinkingInfo |
Event raised when thinkers produce information while thinking.