ColorShapeLinks AI
An AI competition for the IEEE Conference on Games 2021
|
Script which controls ColorShapeLinks sessions, which can include one or more matches. More...
Public Member Functions | |
IThinker | GetThinker (PColor thinkerColor) |
Get thinker of the specified color. More... | |
Properties | |
Board | Board [get] |
The game board. More... | |
IThinker | CurrentThinker [get] |
The current thinker. More... | |
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... | |
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... | |
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... | |
float | LastMoveAnimLength [get] |
Last move animation length in seconds. More... | |
SessionState | State [get] |
State of the current session. More... | |
ISessionConfig | SessionConfig [get] |
Session configuration. More... | |
IMatchConfig | MatchConfig [get] |
Match configuration. More... | |
Match | CurrentMatch [get] |
The match currently being played. More... | |
IEnumerable< Match > | Matches [get] |
All matches played or to be played in current session. More... | |
IEnumerable< KeyValuePair< Match, Winner > > | Results [get] |
Results of matches played so far in current session. More... | |
IEnumerable< KeyValuePair< string, int > > | Standings [get] |
Standings (classification, ranking) of thinkers in current session. More... | |
Winner | LastMatchResult [get] |
Result of last match. More... | |
string | WinnerString [get] |
The winner's name and color. More... | |
bool | WhoPlaysFirst [get] |
Ask who plays first? More... | |
bool | BlockStartNextMatch [get] |
Start of next match screen needs to be unlocked with a button? More... | |
bool | BlockShowResult [get] |
Show result screen needs to be unlocked with a button? More... | |
float | UnblockedScreenDuration [get] |
Duration of unblocked screens (start of next match, show result). More... | |
int | PointsPerWin [get] |
Points per win. More... | |
int | PointsPerLoss [get] |
Points per loss. More... | |
int | PointsPerDraw [get] |
Points per loss. More... | |
Properties inherited from IMatchDataProvider | |
Board | Board [get] |
The game board. More... | |
IThinker | CurrentThinker [get] |
The current thinker. 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... | |
Properties inherited from IMatchViewConfig | |
float | LastMoveAnimLength [get] |
Last move animation length in seconds. More... | |
Properties inherited from IUnitySessionDataProvider | |
bool | WhoPlaysFirst [get] |
Ask who plays first? More... | |
bool | BlockStartNextMatch [get] |
Start of next match screen needs to be unlocked with a button? More... | |
bool | BlockShowResult [get] |
Show result screen needs to be unlocked with a button? More... | |
float | UnblockedScreenDuration [get] |
Duration of unblocked screens (start of next match, show result). More... | |
Properties inherited from ISessionDataProvider | |
SessionState | State [get] |
State of the current session. More... | |
ISessionConfig | SessionConfig [get] |
Session configuration. More... | |
IMatchConfig | MatchConfig [get] |
Match configuration. More... | |
Match | CurrentMatch [get] |
The match currently being played. More... | |
IEnumerable< Match > | Matches [get] |
All matches played or to be played in current session. More... | |
IEnumerable< KeyValuePair< Match, Winner > > | Results [get] |
Results of matches played so far in current session. More... | |
IEnumerable< KeyValuePair< string, int > > | Standings [get] |
Standings (classification, ranking) of thinkers in current session. More... | |
Winner | LastMatchResult [get] |
Result of last match. More... | |
string | WinnerString [get] |
The winner's name and color. More... | |
Properties inherited from ISessionConfig | |
int | PointsPerWin [get] |
Points per win. More... | |
int | PointsPerLoss [get] |
Points per loss. More... | |
int | PointsPerDraw [get] |
Points per draw. More... | |
Script which controls ColorShapeLinks sessions, which can include one or more matches.
Based on the MVC design pattern, composed in this case by the following classes:
Get thinker of the specified color.
thinkerColor | Color of the thinker to get. |
Implements IMatchDataProvider.
|
get |
Show result screen needs to be unlocked with a button?
true
if show result screen needs to be unlocked with a button, false
otherwise.
|
get |
Start of next match screen needs to be unlocked with a button?
true
if start of next match screen needs to be unlocked with a button, false
otherwise.
|
get |
Number of board columns.
Number of board columns.
|
get |
The match currently being played.
|
get |
The current thinker.
The current thinker.
|
get |
Result of last match.
One of the values of the Winner enumeration.
|
get |
Last move animation length in seconds.
Last move animation length in seconds.
Match configuration.
Match configuration consists of number of board rows and columns, how many pieces in a row to win, initial number of pieces, etc.
|
get |
All matches played or to be played in current session.
Collection of matches.
|
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.
|
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.
|
get |
Points per loss.
|
get |
Points per loss.
|
get |
Points per win.
Results of matches played so far in current session.
Collection of match-winner pairs.
|
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 |
Session configuration.
Session configuration consists of points per win, per loss and per draw.
|
get |
Number of initial square round pieces per player
Number of initial square round pieces per player
|
get |
Standings (classification, ranking) of thinkers in current session.
Descending ordered collection of thinker-points pairs.
|
get |
State of the current session.
One of the values defined in the SessionState enumeration.
|
get |
Time limit for the AI to play in milliseconds.
Time limit for the AI to play in milliseconds.
|
get |
Time limit for the AI to play in seconds.
Time limit for the AI to play in seconds.
|
get |
Duration of unblocked screens (start of next match, show result).
Duration in seconds.
|
get |
Ask who plays first?
true
if UI is to ask who plays first, false
otherwise.
|
get |
The winner's name and color.
A string containing the winner's name and color.
|
get |
How many pieces in sequence to find a winner.
How many pieces in sequence to find a winner.