CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Beginning Game Programming
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
GUI Develop
Windows Kernel
WinSock-NDIS
Driver Develop
ADO-ODBC
GDI-Bitmap
CSharp
.net
Multimedia Develop
Communication
Shell api
ActiveX/DCOM/ATL
IME Develop
ISAPI-IE
Hook api
Screen saver
DirextX
Process-Thread
Console
File Operate
Printing program
Multi Monitor
DNA
Other
Search - Beginning Game Programming - List
[
Other
]
123
DL : 1
三子连珠模仿五子棋的形式,有一方三子连成一线即获胜。 程序设计要求: (1) 玩家可以设置棋盘的大小,即在游戏开始时输入一变量n(n=3~9),使棋盘的大小为n×n。 (2) 本程序有if-else选择语句来判断获胜者,如果棋盘变大这将非常繁琐,现要求将这一功能用循环语句实现,且适用于任意大小的棋盘。 (3) 可以设置悔棋功能,要求任意方可以在对方下棋后悔改一步,即将对方当前步和本方上一步删除,本方重新下棋。 -Three sons Lianzhu Gobang imitate the form, even when one of three sons and a line that is winning. Programming requirements: (1) players can set the size of the board, that is the beginning of the game enter a variable n (n = 3 ~ 9), so that the size of the board for the n × n. (2) the procedure to choose if-else statement to determine the winner, if the board this will be very large and cumbersome and are now required to use this feature to achieve the loop, and apply to the board of any size. (3)悔棋function can be set to require any party to repent after a game of chess in the other step will be the current step and the other side to remove the step, the side re-playing a game of chess.
Date
:
Size
: 3kb
User
:
陈朋
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.