ColorShapeLinks AI
An AI competition for the IEEE Conference on Games 2021
|
Extension methods for the PColor enum. More...
Static Public Member Functions | |
static string | FormatName (this PColor color, string name) |
Provides a consistent way to get a formatted thinker name which includes the color with which he's playing. More... | |
static PColor | Other (this PColor color) |
Returns the other color. More... | |
static PShape | Shape (this PColor color) |
Returns the shape associated with this player's color for winning purposes. More... | |
static bool | FriendOf (this PColor color, Piece piece) |
Is the given piece a friend of this color? In other words, is the given piece of the same color as this color or associated with the same shape for winning purposes as this color? More... | |
static Winner | ToWinner (this PColor color) |
Returns the Winner associated with this color. More... | |
Extension methods for the PColor enum.
|
static |
Provides a consistent way to get a formatted thinker name which includes the color with which he's playing.
color | Thinker's color. |
name | Thinker's name. |
Is the given piece a friend of this color? In other words, is the given piece of the same color as this color or associated with the same shape for winning purposes as this color?
color | This color. |
piece | The piece to check for friendship. |
true
is given piece is a friend, false
otherwise. Returns the other color.
color | This color. |
Returns the shape associated with this player's color for winning purposes.
color | This color. |
Returns the Winner associated with this color.
color | This color. |