diff --git a/Player.h b/Player.h new file mode 100644 index 0000000..7ae6e96 --- /dev/null +++ b/Player.h @@ -0,0 +1,21 @@ +#ifndef PLAYER_H +#define PLAYER_H + +#include +#include "Card.h" + +class Player { +private: + std::vector hand; + int chips; + // 其他成员变量... + +public: + void addCardToHand(const Card& card); + void removeCardFromHand(const Card& card); + void updateChips(int amount); + const std::vector& getHand() const; + int getChips() const; +}; + +#endif \ No newline at end of file