ColorShapeLinks AI
An AI competition for the IEEE Conference on Games 2021
RandomAIThinker Class Reference

Implementation of an AI that will play randomly. More...

+ Inheritance diagram for RandomAIThinker:
+ Collaboration diagram for RandomAIThinker:

Public Member Functions

override void Setup (string str)
 Initialize the random number generator used for this random thinker. More...
 
override FutureMove Think (Board board, CancellationToken ct)
 This method will simply return a random valid move. More...
 

Additional Inherited Members

Detailed Description

Implementation of an AI that will play randomly.

Member Function Documentation

◆ Setup()

override void Setup ( string  str)
inlinevirtual

Initialize the random number generator used for this random thinker.

Parameters
strIf the string is convertible to int, this int value is sed as a seed for the random number generator. Otherwise, a random seed value is used instead.
See also
AbstractThinker.Setup

Reimplemented from AbstractThinker.

◆ Think()

override FutureMove Think ( Board  board,
CancellationToken  ct 
)
inlinevirtual

This method will simply return a random valid move.

Parameters
boardThe game board.
ctA cancellation token (ignored).
Returns
The move to be performed.
See also
IThinker.Think

Implements AbstractThinker.


The documentation for this class was generated from the following file: