ColorShapeLinks AI
An AI competition for the IEEE Conference on Games 2021
|
Defines a match configuration, such as number of rows, number of columns, etc. More...
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... | |
Properties inherited from IMatchConfig | |
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... | |
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.
|
inline |
Creates a new instance of this class.
rows | Number of board rows. |
cols | Number of board columns. |
winSequence | How many pieces in sequence to find a winner. |
roundPiecesPerPlayer | Number of initial round pieces per player. |
squarePiecesPerPlayer | Number of initial square round pieces per player |
timeLimitMillis | Time limit for the AI to play in milliseconds. |
minMoveTimeMillis | Even if the AI plays immediately, this time (in milliseconds) gives the illusion that the AI took some minimum time to make a move. |
|
get |
Number of board columns.
Number of board columns.
|
get |
|
get |
|
get |
Number of initial round pieces per player.
Number of initial round pieces per player.
|
get |
Number of board rows.
Number of board rows.
|
get |
Number of initial square round pieces per player
Number of initial square round pieces per player
|
get |
|
get |
|
get |
How many pieces in sequence to find a winner.
How many pieces in sequence to find a winner.