test(DevWeb): Edit tests in PlayerTest

This commit is contained in:
Lucàs
2024-03-28 02:27:11 +01:00
parent 3dfdd195b1
commit 9613e62a78
2 changed files with 184 additions and 232 deletions
@@ -102,6 +102,9 @@ public class Player implements Serializable {
this.clickCount = clickCount;
this.rightClickCount = rightClickCount;
this.rapidClickCount = rapidClickCount;
this.deck = new Deck(game.getNbColors(), game.getNbValuesPerColor());
this.deck.shuffle();
}
@Override
@@ -162,7 +165,7 @@ public class Player implements Serializable {
*
* @param points les points à ajouter
*/
public void updateScore(int points) { this.score += points; }
public void addToScore(int points) { this.score += points; }
/**
* @return si le joueur est gagnant