文件名称:123
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.97kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
三子连珠模仿五子棋的形式,有一方三子连成一线即获胜。
程序设计要求:
(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.
程序设计要求:
(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.
相关搜索: 棋盘 游戏
(系统自动生成,下载前可以参看下载内容)
下载文件列表
课程设计/3zx.cpp
课程设计/liuyang.cpp
课程设计
课程设计/liuyang.cpp
课程设计
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.