| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 354 人关注过本帖
标题:求助:有个关于"游戏的玩法 "的程序考试题,如何编写?谢谢
取消只看楼主 加入收藏
ftyy
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-4-20
结帖率:100%
收藏
已结贴  问题点数:20 回复次数:1 
求助:有个关于"游戏的玩法 "的程序考试题,如何编写?谢谢
求助:有个关于"游戏的玩法 "的程序考试题,如何编写?谢谢
Playing the game will involve two steps. First, the user writes an X or an O in one cell and then presses the PLAY button. The program should then check if there is a winner. If yes, the message “Player X won!” or “Player O won!” should be displayed.
The game ends when a user has N number of X/O s on the same row, column or diagonal –where N is the size of the board.
For example, in all the following snapshots of the game, player X won (the character _ is used to denote that nothing was played in that cell):
Diagonal        row            column
X O _ O    or    X XXX        or    O _ X  X
O X X O        O _ O _            X O X X
_ _ X O            _ O _  _        O O X O
_ _ _ X            _ _ _ _            X O X O



[ 本帖最后由 ftyy 于 2011-4-21 11:59 编辑 ]
2011-04-20 16:20
ftyy
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-4-20
收藏
得分:0 
以下是引用voidx在2011-4-20 17:09:29的发言:

楼主把完整的题目要求发上来
Description
This project will give you exposure to the various types of loops, general procedures and arrays.
You will need to make a program that will play the TIC-TAC-TOE game.
Step 1:
The interface should contain 6x6 textboxes and a play button. Initially all the textboxes should be read only. When the program starts, the user should be asked for a board size and a number of uses playing.


[ 本帖最后由 ftyy 于 2011-4-21 12:00 编辑 ]
2011-04-20 18:10
快速回复:求助:有个关于"游戏的玩法 "的程序考试题,如何编写?谢谢
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017881 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved