#pragma once #include "Player.h" #include "AI.h" class ChessGame { //添加数据成员 private: Player* player; AI* ai; Chess* chess; public: ChessGame(Player* player, AI* ai, Chess* chess); //开始对局 void play(); };