ColorShapeLinks AI
An AI competition for the IEEE Conference on Games 2021
|
Extension methods for the Winner enum. More...
Static Public Member Functions | |
static PColor | ToPColor (this Winner winner) |
Converts a Winner instance into a PColor instance. If conversion is not possible (i.e., if winner not Winner.White or Winner.Red), returns (PColor)(-1) , which is an invalid color. More... | |
Extension methods for the Winner enum.
Converts a Winner instance into a PColor instance. If conversion is not possible (i.e., if winner not Winner.White or Winner.Red), returns (PColor)(-1)
, which is an invalid color.
winner | A Winner instance. |