1、 基于基于 VC 的五子棋游戏软件的设计与开发的五子棋游戏软件的设计与开发 摘摘 要要 人工智能是近年来很活跃的研究领域之一, 计算机博弈是人工智能研究的一 个重要分支,它的研究为人工智能带来了很多重要的方法和理论,产生了广泛的 社会影响和学术影响。五子棋本身就是一款益智休闲游戏,规则简单。五子棋不 仅能增强思维能力,提高智力,而且富含哲理,有助于修身养性。 本系统就以五子棋游戏作为研究课题,对五子棋的算法与规则做了研究,阐 述了如何在 Microsoft Visual C+ 下用 API 函数来开发 Windows 下的游戏并给 出了具体的实现。本系统以五子棋为例实现的主要功能有棋盘、棋子的
2、输出、人 机对下等。本系统还有和棋、再来一盘、帮助等辅助功能。 关键字:关键字:五子棋;Microsoft Visual C+; API 函数 The Design and Exploitation of Gobang Game with VC Abstract Artificial intelligence is one of the brisk research areas. The chess game on computer is an important branch of the research on artificial intelligence. The researches
3、 on chess game bring plenty of important methods and theories for researching on artificial intelligence, and cause broad influences on society and academe. Gobang chess game means five pieces on one line, is a sort of game, which is full of wisdom, leisure and benefits, and the rules of it are very
4、 simple. This paper focuses on the study of this chess game, and uses the Microsoft Visual C+ to explore the Windows game. This system mainly uses the function of Visual C+/API to realize the export of chessboard and checker, and people can play with computer. Moreover, this system has the assistant functions such as “Deuce”、“ Play Again”、“ Help” and so on. Key words: Gobang; Microsoft Visual C+; API Function 目目 录录 论文总页数:21 页 1 引言 1 2 开发工具和应用平台 . 1 2.1 MICROSOFT VISUAL C+ 的介绍. 1 2.2 WIN