Implements a session of ColorShapeLinks matches, setting up matches and keeping track of the results and classifications.
More...
Implements a session of ColorShapeLinks matches, setting up matches and keeping track of the results and classifications.
◆ Session()
Creates a new session.
- Parameters
-
thinkerPrototypes | Prototypes of thinkers participating in the session. |
sessionConfig | Session configuration. |
complete | Is this a complete tournament, i.e., do thinkers play against opponents home and away (two games)? |
◆ GetEnumerator()
IEnumerator<Match> GetEnumerator |
( |
| ) |
|
Return all scheduled matches, completed or otherwise.
- Returns
- All scheduled matches.
◆ GetResults()
IEnumerable<KeyValuePair<Match, Winner> > GetResults |
( |
| ) |
|
|
inline |
Returns the current results.
- Returns
- The current results.
◆ GetStandings()
IEnumerable<KeyValuePair<string, int> > GetStandings |
( |
| ) |
|
|
inline |
Return the current standings/classification.
- Returns
- The current standings/classification.
◆ NextMatch()
bool NextMatch |
( |
out Match |
match | ) |
|
|
inline |
Get next match.
- Parameters
-
match | Variable where to place the next match to play. |
- Returns
true
if there is another match to play, false
otherwise.
◆ SetResult()
void SetResult |
( |
Winner |
result | ) |
|
|
inline |
Set the result of the last match.
- Parameters
-
result | Result of the given match. |
- Exceptions
-
InvalidOperationException | Thrown when the last match already has a result or the result is invalid. |
The documentation for this class was generated from the following file: