ColorShapeLinks AI
An AI competition for the IEEE Conference on Games 2021
|
Represents a board piece. More...
Public Member Functions | |
Piece (PColor color, PShape shape) | |
Create a new piece. More... | |
bool | Is (PColor color, PShape shape) |
Is the piece of the specified color and shape? More... | |
override string | ToString () |
Provides a string representation of the piece in the form "ColorShape". More... | |
Public Attributes | |
readonly PColor | color |
The piece color. More... | |
readonly PShape | shape |
The piece shape. More... | |
Represents a board piece.
Create a new piece.
color | The piece color. |
shape | The piece shape. |
Is the piece of the specified color and shape?
color | The piece color. |
shape | The piece shape. |
true
if the piece has the specified color and shape, false
otherwise. override string ToString | ( | ) |
Provides a string representation of the piece in the form "ColorShape".
readonly PColor color |
The piece color.
readonly PShape shape |
The piece shape.