typo
This commit is contained in:
parent
4bc10860a5
commit
abc0c9ae9f
R4.01_R4.A.10/td_tp/tp2
Binary file not shown.
@ -45,7 +45,7 @@ function play(){
|
||||
newBoard(size)
|
||||
neighbors = calcNeighbours(size)
|
||||
lights = document.querySelectorAll(".board span")
|
||||
state = Array.from({length: size*size}, () => Math.random() < 0.5 ? true:false);
|
||||
state = Array.from({length: size*size}, () => Math.random() < 0.5 ? 1:0);
|
||||
state.forEach((el,i)=>{
|
||||
if (el) lights[i].classList.toggle("off")
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user