游戲設計已經成為現在社會的一種熱門行業。五子棋是一種受大眾廣泛喜愛的游戲,其規則簡單,變化多端,非常富有趣味性和消遣性。這里設計和實現了一個雙人對下的五子棋單機游戲。主要應用了Visual C++編程來完成這個游戲的設計的。本文主要介紹了本游戲開發環境Microsoft Visual C++ 6.0,使用當前優秀的開發工具VC++編程。包含了五子棋程序的棋盤初始化、游戲規則、勝負判斷方法。
關鍵詞:初始化;規則;判斷;
ABSTRAC
The game designed already becomes the present society one popular profession. The gobang is one kind the game which is widely liked the populace, its rule is simple, changeable, extremely rich interesting and recreational. Here designed and has realized one two person to under gobang single plane game. Mainly applied Visual the C++ programming to complete this game the design. This article mainly introduced this game development environment Microsoft Visual C++ 6.0, use current outstanding development kit VC++ programming. Has contained the gobang procedure checkerboard initialization, the game rule, the victory and defeat judgment method.