- UID
- 419373
- 主题
- 注册时间
- 2015-6-26
- 在线时间
- 小时
- 最后登录
- 1970-1-1
签到天数: 15 天 [LV.4]偶尔看看III
|
发表于 2017-7-25 21:28:38
|
显示全部楼层
public static void printWall(T t) {// 打墙+打T型
Cell[] Cells = t.Cells;
for (int i = 0; i < 20; i++) {
for (int j = 0; j < 10; j++) {
if (i == Cells[0].row && j == Cells[0].col
||
i == Cells[1].row && j == Cells[1].col
||
i == Cells[2].row && j == Cells[2].col
||
i == Cells[3].row && j == Cells[3].col) {
System.out.print("* ");
} else {
System.out.print("- ");
}
}
System.out.println();
}
} |
|