diff --git a/Game.h b/Game.h new file mode 100644 index 0000000..13d7279 --- /dev/null +++ b/Game.h @@ -0,0 +1,17 @@ +#ifndef GAME_H +#define GAME_H + +#include "Player.h" + +class Game { +private: + std::vector players; + // 其他成员变量... + +public: + void addPlayer(const Player& player); + bool isGameOver() const; + void endGame(); +}; + +#endif \ No newline at end of file