摘要: 为了实现人机对战功能,必须实现象棋的人工智能,将象棋的每个棋子都赋予一定的权重,每走一步都计算分值,选择得分最高的一步,这是象棋人工智能的基本思想。 #ifndef AI_H #define AI_H #include "cocos2d.h" USING_N... 阅读全文
posted @ 2016-02-26 17:18 RicardoMJiang 阅读(1267) 评论(0) 推荐(0) 编辑
摘要: 1、头文件 void moveStone(int moveid, int killid, int x, int y); void moveComplete(CCNode*, void*); bool canMove(int moveid, int killid, ... 阅读全文
posted @ 2016-02-26 17:12 RicardoMJiang 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 开始界面#ifndef SCENESTART_H#define SCENESTART_H#include "cocos2d.h"#include "SceneGame.h"USING_NS_CC;class SceneStart : public CCLayer{public: ... 阅读全文
posted @ 2016-02-26 17:03 RicardoMJiang 阅读(325) 评论(0) 推荐(0) 编辑