init
This commit is contained in:
27
Reversi/Player.java
Normal file
27
Reversi/Player.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package reversi.model;
|
||||
/**
|
||||
* Class for a player of reversi.
|
||||
*/
|
||||
public class Player {
|
||||
/**
|
||||
* Indicates if a player is human.
|
||||
*/
|
||||
private Boolean isHuman;
|
||||
|
||||
/**
|
||||
* Constructs a new player.
|
||||
*
|
||||
* @param isHuman is the player human?
|
||||
*/
|
||||
public Player(final boolean isHuman) {
|
||||
this.isHuman = isHuman;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return Is player human?
|
||||
*/
|
||||
public final boolean getType() {
|
||||
return isHuman;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user