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

Represents one match in a tournament. More...

+ Collaboration diagram for Match:

Public Member Functions

 Match (IThinkerPrototype thinkerWhite, IThinkerPrototype thinkerRed)
 Create a new match. More...
 
override string ToString ()
 Returns a string representation of this match. More...
 

Public Attributes

readonly IThinkerPrototype thinkerWhite
 First thinker in this match (white). More...
 
readonly IThinkerPrototype thinkerRed
 Second thinker in this match (red). More...
 

Properties

IThinkerPrototype this[PColor color] [get]
 Indexer for getting the thinker's prototype based on his color. More...
 
Match Swapped [get]
 A match with the thinkers swapped. More...
 

Detailed Description

Represents one match in a tournament.

Constructor & Destructor Documentation

◆ Match()

Match ( IThinkerPrototype  thinkerWhite,
IThinkerPrototype  thinkerRed 
)
inline

Create a new match.

Parameters
thinkerWhiteFirst thinker in match (white).
thinkerRedSecond thinker in match (red).

Member Function Documentation

◆ ToString()

override string ToString ( )

Returns a string representation of this match.

Returns
A string representation of this match.

Member Data Documentation

◆ thinkerRed

readonly IThinkerPrototype thinkerRed

Second thinker in this match (red).

◆ thinkerWhite

readonly IThinkerPrototype thinkerWhite

First thinker in this match (white).

Property Documentation

◆ Swapped

Match Swapped
get

A match with the thinkers swapped.

A new match instance.

◆ this[PColor color]

IThinkerPrototype this[PColor color]
get

Indexer for getting the thinker's prototype based on his color.

Parameters
colorThinker color.
Returns
The thinker's prototype associated with the given color.
Exceptions
System.InvalidOperationExceptionThrown when an invalid color is given.

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