SourceCode_Engine

所属分类:棋牌游戏
开发工具:Visual C++
文件大小:544KB
下载次数:16
上传日期:2007-01-09 20:44:41
上 传 者123bnm
说明:  该程序为中国象棋智能下棋引擎.该项目系在Visual Studio.net 2003下所建的Win32控制台项目(使用其它版本的编译器只需新建一个Win32控制台项目,然后逐一加入所有的.cpp文件和.h文件即可),其目的只是简单地测试引擎。因而该程序不提供用户着法的合法性检测,以及棋局的结束处理等。 下棋方式: 用户按输入起点坐标、终点坐标的方式下棋; (棋盘左下角计作(0,0),右上角计作(8,9)) 同样,程序反馈起点坐标、终点坐标作为计算机方的走棋行为。 例如: 用户第一步走:炮二平五 则输入7242,回车 计算机回应:马8进7 则屏幕输出79 67
(the procedures for Chinese chess smart chess engine. The project was officially in the Department of 2,003 under construction Win32 console project (using other versions of the compiler only one new Win32 Console and then one by one to all. cpp files and the. h document can be), its purpose is simply to test the engines. Thus the procedure does not provide users with the legitimacy of law detection, and the end of the game to handle. Playing chess ways : by user input coordinates of the starting point and ending coordinates of a chess game; (Chessboard dollars for the lower left-hand corner (0,0). Total for the upper right-hand corner (8,9)) Similarly, the feedback process coordinates starting and ending coordinates as a computer game to take the act. For example : users take the first ste)

文件列表:
SourceCode_Engine\CChessDef.h (2084, 2005-11-27)
SourceCode_Engine\CChessEvaluate.h (23318, 2006-03-12)
SourceCode_Engine\CChessMove.h (25759, 2005-11-29)
SourceCode_Engine\CChessSearch.h (7620, 2006-04-24)
SourceCode_Engine\Debug (0, 2006-05-16)
SourceCode_Engine\HistoryHeuristic.h (1343, 2005-11-14)
SourceCode_Engine\scCChess.cpp (433, 2006-03-13)
SourceCode_Engine\scCChess.h (1610, 2006-05-16)
SourceCode_Engine\scCChess.ncb (60416, 2006-05-16)
SourceCode_Engine\scCChess.sln (905, 2005-08-24)
SourceCode_Engine\scCChess.suo (8704, 2006-05-16)
SourceCode_Engine\scCChess.vcproj (3829, 2005-11-14)
SourceCode_Engine\SortMove.h (2765, 2005-11-14)
SourceCode_Engine (0, 2006-05-16)
说明.txt (481, 2006-05-16)

******************************************************************************************************* ** 中国象棋对弈软件下棋引擎程序(不含界面) * * by sun428 ** 苏州大学文正学院计算机系科技小组(03届) ******************************************************************************************************* 1、程序组成: scCChess.cpp ――程序主文件。负责游戏的开始。 scCChess.h ――主头文件。定义了初始化游戏、开始游戏等基本函数。 CChessDef.h ――象棋相关定义。包括棋子棋盘的表示,行棋的基本结构类型等定义。 CChessEvaluate.h ――局面评估。为某一特定局面进行评分。 CChessMove.h ――着法生成器。就当前局面生成某一方所有合法着法。 CChessSearch.h ――搜索部分。对着法队列进行搜索,求出最佳着法。 HistoryHeuristic.h ――历史启发。Alpha-Beta搜索之补充,以提高搜索效率。 SortMove.h ――着法排序。对着法按其历史得分进行降序排序,以提高搜索效率。 2、历史: 2005年6月 着手准备,搜集相关资料 2005年8月初 动手开始写代码 2005年8月24日 完成最初版本,程序顺利运行,但电脑下棋水平较差 2005年8月25日 完成对局面评估函数第一次大规模改写,效果仍不甚理想 2005年8月26日 修正了将军情况下的严重Bug 2005年8月27日 完成对局面评估函数第二次大规模改写,电脑下棋水平有了重大提高,效果基本达到要求 之后…… 陆续进行小的修改与调整 3、参考资料 *《PC 游戏编程(人机博弈)》 作者:王小春 重庆大学出版社 * 象棋百科全书 ElephantBoard的主页 www.elephantbase.net 站长邮箱: webmaster@elephantbase.net *《Visual C++.NET 小游戏开发时尚编程百例》 作者:网冠科技 机械工业出版社 * 以及众多其它无名作者的源程序 在此,向以上所列表示感谢

近期下载者

相关文件


收藏者