五子棋游戏设计摘要
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
摘要
随着经济的发展,社会竞争的激烈,现在社会进入了竞争的时代。上班族为了完成公司业务,每天超负荷的工作;学生为了不落后他人每天早起晚睡不断地学习,压力巨大。所以为了缓解大家的压力,使大家在工作、学习之余娱乐一下,活跃大脑,提高工作、学习效率,因此益智性游戏越来越受人们的关注,五子棋作为益智类游戏之一,倍受人们的喜爱,所以对于五子棋的开发也有了很多关注。
本文主要讲的是利用VC++6.0软件开发一个界面简洁、直观、实用性比较高的AI功能的五子棋游戏,游戏程序实现人机对弈,在对弈过程中当用户和电脑比赛时电脑利用搜索算法计算出落子的最佳位置,是先人机对弈,而且程序能够完成具有重新开始、认输、提示该轮到哪一方下棋的、游戏、判断胜负、时间设置、悔棋等功能。
关键词:人工智能,自动处理,人机博弈,五子棋,
Abstract
With development of economy, social competition is intense, now society has entered into the competition era. Office worker in order to complete the company business, overworked every day; For catching up with others, the student rises early, sleeps late and studies hard. The pressure builds up. So in order to alleviate the pressure, make everyone all over the job, study entertained, active brain, improve work, learning efficiency,So the puzzle of the game more and more people's attention, as a puzzle game of backgammon, times suffer people love, so the Gobang development also has a lot of attention.
This paper discusses a simple games developed by the VC++ 6.0 software developers with an simple interface, intuitive, relatively high practical AI games. The game program to achieve human-computer chess, when the user begin to play the game, the computer and player take their chess in turn, on the computer’s turn the computer use the mathematics to search the best position to play in this system in order to achieve the basic required functionality of backgammon, for example: start over, losing function, remind which side to play chess , quit the game to determine the outcome function, the time setting function, undo function.
KEYWORDS:AI, Automatic processing, The Game Machine, Gobang