登录
首页 » DOS » wzq

wzq

于 2021-01-15 发布 文件大小:425KB
0 396
下载积分: 1 下载次数: 14

代码说明:

  近来随着计算机的快速发展,各种棋类游戏被纷纷请进了电脑,使得那些喜爱下棋,又常常苦于没有对手的棋迷们能随时过足棋瘾。而且这类软件个个水平颇高,大有与人脑分庭抗礼之势。其中战胜过国际象棋世界冠军-卡斯帕罗夫的“深蓝”便是最具说服力的代表;其它像围棋的“手淡”、象棋的“将族”等也以其优秀的人工智能深受棋迷喜爱;而我们今天将向大家介绍的是五子棋的算法。 当我们与电脑对战时,您知道这些软件是怎样象人脑一样进行思考的吗?前不久我曾编写过一个五子棋的游戏,在这里就以此为例和大家一起探讨探讨。 总的来说(我们假定您熟悉五子棋的基本规则),要让电脑知道该在哪一点下子,就要根据盘面的形势,为每一可能落子的点计算其重要程度,也就是当这子落下后会形成什么棋型(如:“冲四”、“活三”等),然后通览全盘选出最重要的一点,这便是最基本的算法。当然,仅靠当前盘面进行判断是远远不够的,这样下棋很容易掉进玩家设下的陷阱,因为它没有考虑以后的变化。所以在此基础上我们加入递归调用,即:在电脑中预测出今后几步的各种走法,以便作出最佳选择,这也是我们下棋时常说的“想了几步”。如此一来您的程序便具有一定的水平了。 (With the recent rapid development of computers, various board games have been invited to the computer, making those who love playing chess, and usually do not have the opponent s chess enthusiast can always have adequate chess addiction. And all levels of this type of software is high, go a long way with the potential to rival the human brain. Had to overcome one of the World Chess Championship- Garry Kasparov s "Deep Blue" is the most convincing representatives other like Go s "short hand" chess "will be ethnic," also for its excellent artificial intelligence chess enthusiast popular favorite and we will introduce the U.S. are Gobang algorithms. When we and the computer during wartime, you know how the software is to consider brain-like Elephant Man s吗? Not long ago, I have prepared a Gobang games here at this example and explore the U.S. to explore. In general (we assume that you are familiar with the basic rules Gobang), let the computer know at what point Now, it is necess)

文件列表:

FONT
....\HZK16
README.EXE
SOURCE
......\FIVE.C
......\INCLUDE
......\.......\KEYS.H
......\.......\SVGACC.H
......\.......\SVGA_IMG.H
......\.......\S_BUTTOM.H
......\MYOBJ
......\.....\SPRINTC.C
......\.....\SPRINTC.H
......\.....\SPRINTC.OBJ
......\.....\SVGACC.LIB
......\.....\SVGA_NUM.C
......\.....\SVGA_NUM.H
......\.....\SVGA_NUM.OBJ
......\WZQ.PRJ
SVGA.FNT
WZQ
...\BLACK5.HS

...\WHILE5.HS
...\WZQ.PAL

WZQ.DOC
WZQ.EXE
WZQ.ICO
WZQ.PIF

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • java(sameqqgame)
    已导到eclipse项目当中,可以直接运行,有棋类、牌类等游戏。强烈推荐(Has lead to the eclipse project which can be directly run, there are chess, card games, etc.. Strongly recommend)
    2007-12-09 11:14:49下载
    积分:1
  • gnuchess-5.07
    一款国际象棋的C++源代码,可以实现人机对战,而且AI的棋力不错(A chess in C++ source code, can achieve man-machine Battle, and a good AI' s Qi Li)
    2009-12-11 18:08:34下载
    积分:1
  • Ex_FiveChess
    使用MFC实现五子棋的简单功能,可以和电脑下棋。(MFC backgammon simple functions, and computer chess.)
    2013-01-16 21:52:12下载
    积分:1
  • gobang
    五子棋人机对战,有悔棋功能,判断输赢,欢迎同学们交流学习(Gobang man-machine to war, have the Undo function, determine the winners and losers, welcome the exchange of learning)
    2015-03-25 16:11:22下载
    积分:1
  • Backgammon
    五子棋是有两个人在一盘棋上进行对抗的竞技运动。在对局开始时,先由用户选择哪方先开局,先开局一方将一枚棋子落在一点上,然后由另一方在对方棋周围的交叉点上落子,如此轮流落子,直到某一方首先在棋盘的直线、横线或斜线上形成连续的五子则该方就算获胜。此时,算法结束。当有任何一方想退出时,都可在算法中实现。(Backgammon is a competitive sport confrontation of two people in a game of chess. At the beginning of the game, the first users to choose which side first start, first start the party will be a pawn falls point, and then by the other party on the other chess around the intersection of Lazi, so turns Lazi, until the party first the chessboard straight, horizontal or diagonal to form a continuous five sons even if the party wins. In this case, the algorithm ends. When either party wishes to withdraw from, can be realized in the algorithm.)
    2012-11-05 20:18:00下载
    积分:1
  • 03
    说明:  黑白下棋的吃子算法.规则,对(x,y)坐标进行规则判断,并吃子。(Black and white chess eating algorithms. Rules, rules judge (x, y) coordinates, and eat the child.)
    2012-06-25 18:56:11下载
    积分:1
  • chesschina
    我自己的毕业设计,中国象棋,界面加音乐播放都算可以,而且可以学习vc堆栈的使用,算法一般。(My graduation project, Chinese chess, plus music player interface can all count, but can also study the use of stack vc.)
    2009-02-16 14:48:33下载
    积分:1
  • java-FiveChess
    五子棋游戏 游戏开始要求: 输出一下棋盘,然后提示黑方和白方下子,玩家从 命令行输入:af,表示在af坐标落子,其中黑方的 子用@表示,白方子用O表示,每一方有一方落子, 则要重新输出棋盘的状态,程序还要求能判断某一方 获胜并终止程序。(Backgammon games started to demand: output about the board, and then prompted Black and White Now, players from the command line enter: af, af coordinates expressed in the Laozi, in which a child with @ Black said Bai Fangzi with O that each Lazi one one side, the state will have to re-output board, the program also required to determine the winning party and terminate the program.)
    2011-06-04 22:52:10下载
    积分:1
  • 五子
    五子棋源代码,采用c++编译开发。。。。。。。。(Gobang source code,Compile and develop using c++.)
    2018-10-04 16:43:25下载
    积分:1
  • MainForm
    俄罗斯方块源代码 小弟敬上 希望大家多关照(Russian box source code younger brother's Note we hope more care)
    2007-06-29 20:56:12下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载