chess-C
chess 

所属分类:控制台编程
开发工具:Visual C++
文件大小:4749KB
下载次数:3
上传日期:2011-10-18 18:28:38
上 传 者Mhaohao
说明:  该项目系在Visual Studio.net 2003下所建的Win32控制台项目(使用其它版本的编译器只需新建一个Win32控制台项目,然后逐一加入所有的.cpp文件和.h文件即可),其目的只是简单地测试引擎。因而该程序不提供用户着法的合法性检测,以及棋局的结束处理等。 下棋方式: 用户按输入起点坐标、终点坐标的方式下棋; (棋盘左下角计作(0,0),右上角计作(8,9)) 同样,程序反馈起点坐标、终点坐标作为计算机方的走棋行为。 例如: 用户第一步走:炮二平五 则输入7242,回车 计算机回应:马8进7 则屏幕输出79 67
(The project is in Visual Studio.net 2003 Win32 console built under the project (using the other version of the compiler simply create a new Win32 console project, then add all one by one. Cpp file and. H files can be), the purpose is simply to test the engine. Thus the law does not provide the user with the legitimacy of detection, and chess game end processing. Chess mode: the user presses the input point coordinates and end coordinates of the way chess (lower left corner of the board count as (0,0), count as the upper right corner (8,9)) Similarly, the feedback process starting coordinates, end coordinates as a computer party' s move behavior. For example: the user first step to go: shot two level five input 7242, enter the computer responded: Ma 8 into 7-screen output 79 67)

文件列表:
中国象棋C\中国象棋\SourceCode_Engine\CChessDef.h (2084, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\CChessEvaluate.h (23318, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\CChessMove.h (25759, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\CChessSearch.h (7663, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\BuildLog.htm (9812, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\cl.command.1.tlog (610, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\CL.read.1.tlog (9982, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\CL.write.1.tlog (310, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\link-cvtres.read.1.tlog (2, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\link-cvtres.write.1.tlog (2, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\link.5992-cvtres.read.1.tlog (2, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\link.5992-cvtres.write.1.tlog (2, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\link.5992.read.1.tlog (2, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\link.5992.write.1.tlog (2, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\link.command.1.tlog (1276, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\link.read.1.tlog (3114, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\link.write.1.tlog (732, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\mt.command.1.tlog (376, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\mt.dep (65, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\mt.read.1.tlog (294, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\mt.write.1.tlog (294, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\rc.command.1.tlog (510, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\rc.read.1.tlog (266, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\rc.write.1.tlog (274, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\scCChess.exe (571904, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\scCChess.exe.embed.manifest (406, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\scCChess.exe.embed.manifest.res (472, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\scCChess.exe.intermediate.manifest (381, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\scCChess.ilk (1375656, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\scCChess.lastbuildstate (69, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\scCChess.log (2802, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\scCChess.obj (261503, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\scCChess.pdb (2690048, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\scCChess_manifest.rc (206, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\vc100.idb (224256, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\vc100.pdb (200704, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\vc90.idb (183296, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\Debug\vc90.pdb (167936, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\HistoryHeuristic.h (1343, 2011-10-18)
中国象棋C\中国象棋\SourceCode_Engine\ipch\sccchess-362c10f1\sccchess-33f0797b.ipch (15728640, 2011-10-18)
... ...

******************************************************************************************************* ** 中国象棋对弈软件下棋引擎程序(不含界面) * * by sun428 ** ******************************************************************************************************* 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 小游戏开发时尚编程百例》 作者:网冠科技 机械工业出版社 * 以及众多其它无名作者的源程序 在此,向以上所列表示感谢

近期下载者

相关文件


收藏者