ColorShapeLinks
An assignment for the AI course unit of the Bachelor in Videogames at Lusófona University
|
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... | |
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".