- 博客(0)
- 资源 (3)
- 收藏
- 关注
JAVA写的连连看游戏及源码
使用java编写的连连看。for (int twins = 1; twins <= 15; twins++) {
randoms = (int) (Math.random() * 25 + 1);
for (int alike = 1; alike <= 2; alike++) {
cols = (int) (Math.random() * 6 + 1);
rows = (int) (Math.random() * 5 + 1);
while (grid[cols][rows] != 0) {
cols = (int) (Math.random() * 6 + 1);
rows = (int) (Math.random() * 5 + 1);
}
this.grid[cols][rows] = randoms;
}
}
2010-10-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人