Files
Sudoku/app/src/main/java/game/Player.java
Persson-dev f22debdf5f
All checks were successful
Linux arm64 / Build (push) Successful in 28s
fix: score display
2025-02-01 12:54:11 +01:00

36 lines
539 B
Java

package game;
import java.io.Serializable;
public class Player implements Serializable {
static private final long serialVersionUID = 9999;
private final String pseudo;
private final int id;
private int score;
public Player(int id, String pseudo) {
this.pseudo = pseudo;
this.id = id;
this.score = 0;
}
public int getRemainingCells() {
return score;
}
void setRemainingCells(int score) {
this.score = score;
}
public String getPseudo() {
return this.pseudo;
}
public int getId() {
return this.id;
}
}