diff --git a/src/main/java/latice/model/Player.java b/src/main/java/latice/model/Player.java new file mode 100644 index 0000000..0279cdc --- /dev/null +++ b/src/main/java/latice/model/Player.java @@ -0,0 +1,24 @@ +package latice.model; + +import java.util.Scanner; + +public class Player { + private final String name; + private Score score; + + public Player(String name, Score score) { + //Demande le nom du joueur + Scanner enterPlayerName = new Scanner(System.in); + System.out.println("Veuilez entrer votre nom " + name + " :"); + String namePlayer = enterPlayerName.next(); + + this.name = namePlayer; + this.score = score; + } + + public String getName() { + return name; + } + + +} diff --git a/src/main/java/latice/model/Score.java b/src/main/java/latice/model/Score.java new file mode 100644 index 0000000..e9267f2 --- /dev/null +++ b/src/main/java/latice/model/Score.java @@ -0,0 +1,19 @@ +package latice.model; + +public class Score { + private Integer score; + + public Score() { + this.score = 0; + } + + public Integer getScore() { + return score; + } + + public void setScore(Integer score) { + this.score = score; + } + + +}