This commit is contained in:
2024-12-05 08:54:54 +08:00
parent 8aa6947e2b
commit c99f6f67b2
3 changed files with 16 additions and 4 deletions

View File

@@ -9,6 +9,10 @@ public class Player {
private String name;
private ArrayList<Card> hand = new ArrayList<>();
/**
* 构造函数
* @param name 玩家名称
*/
public Player(String name) {
this.name = name;
}