public class Piece
extends java.lang.Object
Constructor | Description |
---|---|
Piece(int colour) |
Modifier and Type | Method | Description |
---|---|---|
int |
getColour() |
Get the colour of this piece
|
boolean |
isKing() |
Determine if this piece is currently a king
|
java.lang.String |
toString() |
|
void |
upgradeToKing() |
Upgrade this piece to a king
|
public boolean isKing()
public void upgradeToKing()
public int getColour()
public java.lang.String toString()
toString
in class java.lang.Object