質問編集履歴
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,13 +25,11 @@
|
|
25
25
|
for(i=0; i<number_of_mines; i++){
|
26
26
|
tate=Math.floor(Math.random()*(number_of_mines+1));
|
27
27
|
yoko=Math.floor(Math.random()*(number_of_mines+1));
|
28
|
-
|
28
|
+
|
29
29
|
if(cell[yoko][tate]!=-1){
|
30
30
|
cell[yoko][tate]=-1;
|
31
|
-
document.write("これから<br>");
|
32
31
|
}
|
33
32
|
else{
|
34
|
-
document.write("入ったよ<br>");
|
35
33
|
i--;
|
36
34
|
}
|
37
35
|
}
|