public class Piece
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
is_white
The piece color (white or black).
|
Constructor and Description |
---|
Piece(boolean is_white)
Create a new board.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isWhite()
Test, if it is a white piece.
|
java.lang.String |
toString()
Get the string representation.
|