中国象棋游戏的设计与实现(VC++)
1.无需注册登录,支付后按照提示操作即可获取该资料.
2.资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用.
密 惠 保
摘 要象棋程序的实现可以被分为人工智能和界面程序辅助两大部分。人工智能部分主要体现计算机的下棋思路,既计算机如何进行思考并以最佳走法完成下一步,先由相应的搜索算法进行搜索,并对各种可能的走法进行估值,从中选择胜利面最大的一步;而界面及程序辅助部分主要便于用户通过以前的下棋步骤,更好地调整下棋思路,着法显示使用户能够清楚地知道下棋过程,更准确地把握整个局面。本文首先研究了中国象棋在计算机中的表示问题,接着讨论如何产生着法一系列相关内容。其次研究了博弈树的极小极大搜索技术及在此基础上发展起来的Alpha-Beta剪枝算法,使用MFC文档视图体系结构和Visual C++开发工具,实现了一个具有一定棋力的中国象棋人机对弈程序。 copyright think58
[来源:http://think58.com]
关键词:中国象棋;人工智能;博弈树;Alpha-Beta搜索The Design and Implementation of Chinese ChessAbstractThe implementation of a chess program can be decomposed into two major parts: the artificial intelligence and the user interface and program assist. The part of artificial intelligence shows the way of computer thinking, and which step is the best step would be decided by it. Firstly, the computer uses search algorithms to search, and then evaluates every impossible step, finally choses the best one, the other part is used for the player to adjust his thought to the currently phases. The display of step list makes player know the process of chess distinctly, and let player make a better choice.This paper firstly studies how to represent a chess board in computer, then discusses how to generate legal moves. Secondly, this paper studies the mini-max searching procedure of Game Tree, and the Alpha-Beta pruning algorithm. A Chess-playing system is designed and developed, which is built on the integrated computer MFC SDI document view architecture by using Visual C++. think58 [来源:http://think58.com]
Key words: Chinese chess Artificial Intelligence Game tree Alpha-Beta searching目 录1引言11.1象棋设计背景和研究意义11.2象棋设计研究方法12人工智能算法设计22.1棋局表示32.2着法生成42.3搜索算法52.4历史启发及着法排序92.5局面评估92.6程序组装113界面及程序辅助设计123.1界面基本框架123.2多线程133.3着法名称显示143.4悔棋和还原154系统实现16结 论19参考文献20致 谢21声 明22
[资料来源:THINK58.com]
预览图: [资料来源:http://www.THINK58.com]
think58好,好think58 [资料来源:http://think58.com]