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

Defines a match configuration, such as number of rows, number of columns, etc. More...

+ Inheritance diagram for MatchConfig:
+ Collaboration diagram for MatchConfig:

Public Member Functions

 MatchConfig (int rows=6, int cols=7, int winSequence=4, int roundPiecesPerPlayer=10, int squarePiecesPerPlayer=11, int timeLimitMillis=3600000, int minMoveTimeMillis=0)
 Creates a new instance of this class. More...
 

Properties

int Rows [get]
 Number of board rows. More...
 
int Cols [get]
 Number of board columns. More...
 
int WinSequence [get]
 How many pieces in sequence to find a winner. More...
 
int RoundPiecesPerPlayer [get]
 Number of initial round pieces per player. More...
 
int SquarePiecesPerPlayer [get]
 Number of initial square round pieces per player More...
 
int TimeLimitMillis [get]
 Time limit for the AI to play in milliseconds. More...
 
float TimeLimitSeconds [get]
 Time limit for the AI to play in seconds. More...
 
float MinMoveTimeSeconds [get]
 Even if the AI plays immediately, this time (in seconds) gives the illusion that the AI took some minimum time to make a move. More...
 
int MinMoveTimeMillis [get]
 Even if the AI plays immediately, this time (in milliseconds) gives the illusion that the AI took some minimum time to make a move. More...
 

Detailed Description

Defines a match configuration, such as number of rows, number of columns, etc.

This is a helper class which can used for testing AI thinkers in isolation, simplifying the instantiation of thinkers using ThinkerPrototypes, outside the context of matches and sessions.

See also
ColorShapeLinks.Common.Session.IMatchConfig

Constructor & Destructor Documentation

◆ MatchConfig()

MatchConfig ( int  rows = 6,
int  cols = 7,
int  winSequence = 4,
int  roundPiecesPerPlayer = 10,
int  squarePiecesPerPlayer = 11,
int  timeLimitMillis = 3600000,
int  minMoveTimeMillis = 0 
)
inline

Creates a new instance of this class.

Parameters
rowsNumber of board rows.
colsNumber of board columns.
winSequenceHow many pieces in sequence to find a winner.
roundPiecesPerPlayerNumber of initial round pieces per player.
squarePiecesPerPlayerNumber of initial square round pieces per player
timeLimitMillisTime limit for the AI to play in milliseconds.
minMoveTimeMillisEven if the AI plays immediately, this time (in milliseconds) gives the illusion that the AI took some minimum time to make a move.

Property Documentation

◆ Cols

int Cols
get

Number of board columns.

Number of board columns.

See also
ColorShapeLinks.Common.Session.IMatchConfig.Cols

◆ MinMoveTimeMillis

int MinMoveTimeMillis
get

Even if the AI plays immediately, this time (in milliseconds) gives the illusion that the AI took some minimum time to make a move.

Minimum apparent move time in seconds.

See also
ColorShapeLinks.Common.Session.IMatchConfig.MinMoveTimeMillis

◆ MinMoveTimeSeconds

float MinMoveTimeSeconds
get

Even if the AI plays immediately, this time (in seconds) gives the illusion that the AI took some minimum time to make a move.

Minimum apparent move time in seconds.

See also
ColorShapeLinks.Common.Session.IMatchConfig.MinMoveTimeSeconds

◆ RoundPiecesPerPlayer

int RoundPiecesPerPlayer
get

Number of initial round pieces per player.

Number of initial round pieces per player.

See also
ColorShapeLinks.Common.Session.IMatchConfig.RoundPiecesPerPlayer

◆ Rows

int Rows
get

Number of board rows.

Number of board rows.

See also
ColorShapeLinks.Common.Session.IMatchConfig.Rows

◆ SquarePiecesPerPlayer

int SquarePiecesPerPlayer
get

Number of initial square round pieces per player

Number of initial square round pieces per player

See also
ColorShapeLinks.Common.Session.IMatchConfig.SquarePiecesPerPlayer

◆ TimeLimitMillis

int TimeLimitMillis
get

Time limit for the AI to play in milliseconds.

Time limit for the AI to play in milliseconds.

See also
ColorShapeLinks.Common.Session.IMatchConfig.TimeLimitMillis

◆ TimeLimitSeconds

float TimeLimitSeconds
get

Time limit for the AI to play in seconds.

Time limit for the AI to play in seconds.

See also
ColorShapeLinks.Common.Session.IMatchConfig.TimeLimitSeconds

◆ WinSequence

int WinSequence
get

How many pieces in sequence to find a winner.

How many pieces in sequence to find a winner.

See also
ColorShapeLinks.Common.Session.IMatchConfig.WinSequence

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