This commit is contained in:
Felix Steghofer
2022-12-04 01:25:28 +01:00
commit 3db4f94e6a
31 changed files with 2762 additions and 0 deletions

27
Reversi/Player.java Normal file
View 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;
}
}