- 论坛徽章:
- 0
|
五子棋游戏
怎么在原字符化棋盘上更新,而不用重新画个棋盘.........好难看
这个问题属于shell 还是c++
给几个关键字或方向就好 谢谢你:wink:
如下图:
[root @localhost ChessDemo]$./a.out
Enter BoardSize between 1-9 :...
9
1 2 3 4 5 6 7 8 9
1
2
3
4
5
6
7
8
9
........................................PLAYER_1 makr:* PLAYER_0 mark: 0
PLAYER_1, please enter x,y: 4
3
1 2 3 4 5 6 7 8 9
1
2
3
4 *
5
6
7
8
9
........................................PLAYER_1 makr:* PLAYER_0 mark: 0
PLAYER_0, please enter x,y:
[root @localhost ChessDemo]$./a.out
Enter BoardSize between 1-9 :...
9
1 2 3 4 5 6 7 8 9
1
2
3
4
5
6
7
8
9
........................................PLAYER_1 makr:* PLAYER_0 mark: 0
PLAYER_1, please enter x,y: 4 4
1 2 3 4 5 6 7 8 9
1
2
3
4 *
5
6
7
8
9
........................................PLAYER_1 makr:* PLAYER_0 mark: 0
PLAYER_0, please enter x,y: 5 5
1 2 3 4 5 6 7 8 9
1
2
3
4 *
5 O
6
7
8
9
........................................PLAYER_1 makr:* PLAYER_0 mark: 0
PLAYER_1, please enter x,y: 6 6
1 2 3 4 5 6 7 8 9
1
2
3
4 *
5 O
6 *
7
8
9
........................................PLAYER_1 makr:* PLAYER_0 mark: 0
PLAYER_0, please enter x,y:
怎么在一个棋盘内完成游戏 thx
[ 本帖最后由 tdounnyy 于 2009-12-5 16:51 编辑 ] |
|