摘要
为了设计人人对弈模式的五子棋游戏系统,采用了C语言函数模块化程序设计方法,利用VisualC++6.0编译器运行游戏,实现一方执白棋,一方执黑棋,通过屏幕上的文字提示,轮流走棋,最先使五子相连一方获胜的人人对弈功能。同时,也对其他游戏系统的开发设计具有一定的借鉴作用。
In order to design a players gobang system,the author applies C language function modular programming method flexibly.At the same time,the Visual C++ 6.0 compiler is used for the purpose of running the game.In the game,one executes white piece while another black piece.Moreover both sides try to win,which means one side makes five pieces link together before the game over.Simultaneously both sides can play the game in turn through text reminding in the screen.Further more the design of gobang game is of reference value to exploit other games.
出处
《宁波职业技术学院学报》
2012年第2期41-44,共4页
Journal of Ningbo Polytechnic
关键词
五子棋
C语言
人人对弈
Gobang game
C programming language
players game