适合人群:
这个游戏适合初学C++语言,不想了解MFC的同学。
界面:
用数字表示棋子和棋盘
跨平台:
也可以在Linux下面运行,可以作为一个C++中国象棋的游戏引擎。
走棋:
通过写程序走棋,例如
#include "../chess_lib/chessbase.h"
#include "../chess_lib/chessplay.h"
#include
using namespace std;
int main(int argv, char** argc)
{
//CChessPlay::Instance()->Init();也可以这么用
CCHESSPLAY()->Init();
CCHESSPLAY()->OutStatus(cout);
OneStep onestep(make_pair(make_pair(12, 10),make_pair(10, 9)), 0);
CCHESSPLAY()->GoAhead(onestep);
CCHESSPLAY()->OutStatus(cout);
return 0;
}
输出如下: