Skip to content
Permalink
f063c74133
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
22 lines (19 sloc) 342 Bytes
class Piece{
//represents a game piece
char _token;
int _row;
int _col;
boolean _empty;
public Piece(char t, int r, int c) {
_token = t;
_row = r;
_col = c;
_empty = false;
}
public Piece(boolean empty){
_empty = empty;
}
public Piece clone() {
return new Piece(_token, _row, _col);
}
}