remove console.logs
This commit is contained in:
@@ -27,17 +27,14 @@ function Board() {
|
|||||||
if (playing) {
|
if (playing) {
|
||||||
intervalRef.current = setInterval(() => {
|
intervalRef.current = setInterval(() => {
|
||||||
step()
|
step()
|
||||||
console.log("a")
|
|
||||||
}, STEP_DELAY)
|
}, STEP_DELAY)
|
||||||
} else {
|
} else {
|
||||||
clearInterval(intervalRef.current)
|
clearInterval(intervalRef.current)
|
||||||
console.log(program)
|
|
||||||
}
|
}
|
||||||
}, [playing])
|
}, [playing])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (program.done) {
|
if (program.done) {
|
||||||
console.log("done")
|
|
||||||
const x = structuredClone(program)
|
const x = structuredClone(program)
|
||||||
resetProgram(x)
|
resetProgram(x)
|
||||||
setPlaying(false)
|
setPlaying(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user