summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/Player.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/model/Player.java')
-rw-r--r--src/jrummikub/model/Player.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/jrummikub/model/Player.java b/src/jrummikub/model/Player.java
index 623915d..ddd10e4 100644
--- a/src/jrummikub/model/Player.java
+++ b/src/jrummikub/model/Player.java
@@ -9,8 +9,14 @@ public class Player implements IPlayer {
private String name;
private Color color;
- // private String name;
-
+ /**
+ * Create a new player with a given name and color
+ *
+ * @param name
+ * player name
+ * @param color
+ * player's color
+ */
public Player(String name, Color color) {
hand = new Hand();
this.name = name;