mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-05-14 01:21:49 +00:00
test(DevWeb): Edit tests in PlayerTest
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user