ColorShapeLinks AI
An AI competition for the IEEE Conference on Games 2021
|
This class runs a game-engine independent match of ColorShapeLinks. More...
Public Member Functions | |
MatchController (IMatchConfig matchConfig, IMatchDataProvider matchData) | |
Sets up a new match. More... | |
Winner | Run () |
Runs the match. More... | |
Events | |
Action< IMatchConfig, IList< string > > | MatchStart |
Event raised when the match is about to start. More... | |
Action< Board > | BoardUpdate |
Event raised when the board is updated. More... | |
Action< PColor, string > | NextTurn |
Event raised when the next turn is about to start. More... | |
Action< PColor, string, string > | InvalidPlay |
Event raised when a given player performed an invalid play, for example taking too long to play, returning an invalid move or causing or throwing an exception. More... | |
Action< PColor, string, FutureMove, int > | MovePerformed |
Event raised when a given player makes a move. More... | |
Action< Winner, ICollection< Pos >, IList< string > > | MatchOver |
Event raised when the match is over. More... | |
Events inherited from IMatchSubject | |
Action< IMatchConfig, IList< string > > | MatchStart |
Event raised when the match is about to start. More... | |
Action< Board > | BoardUpdate |
Event raised when the board is updated. More... | |
Action< PColor, string > | NextTurn |
Event raised when the next turn is about to start. More... | |
Action< PColor, string, string > | InvalidPlay |
Event raised when a given player performed an invalid play, for example taking too long to play, returning an invalid move or causing or throwing an exception. More... | |
Action< PColor, string, FutureMove, int > | MovePerformed |
Event raised when a given player makes a move. More... | |
Action< Winner, ICollection< Pos >, IList< string > > | MatchOver |
Event raised when the match is over. More... | |
This class runs a game-engine independent match of ColorShapeLinks.
|
inline |
Sets up a new match.
matchConfig | Match configuration. |
matchData | Match data. |
|
inline |
Runs the match.
Action<Board> BoardUpdate |
Event raised when the board is updated.
Action<PColor, string, string> InvalidPlay |
Event raised when a given player performed an invalid play, for example taking too long to play, returning an invalid move or causing or throwing an exception.
string
type parameter is the name of the player that made an invalid play.string
type parameter is the description of the invalid play. Event raised when the match is over.
ICollection<ColorShapeLinks.Common.Pos>
type parameter contains the winning solution, if any.IList<string>
type parameter contains a list of player names, with White player at index 0, and Red player at index 1. Action<IMatchConfig, IList<string> > MatchStart |
Event raised when the match is about to start.
IList<string>
type parameter contains a list of player names, with White player at index 0, and Red player at index 1. Action<PColor, string, FutureMove, int> MovePerformed |
Event raised when a given player makes a move.
string
type parameter is the name of the player that made a move.int
time parameter is the move thinking time in milliseconds. Action<PColor, string> NextTurn |
Event raised when the next turn is about to start.
string
type parameter is the name of the player that is playing in the next turn.