Workshop › Connect Four › Step 9 of 38
draw() runs only once, so a change to the board would never show. A game loop draws again about 60 times a second:
requestAnimationFrame(loop) asks the browser to run loop before the next screen refresh, and loop asks again.
```js
function loop() {
draw()
requestAnimationFrame(loop)
}
reset()
requestAnimationFrame(loop)
```loop draws one frame and books the next one.requestAnimationFrame(loop) replaces the single draw() and starts it all.reset() at the bottom write loop, followed by an empty line.draw(), with requestAnimationFrame(loop).Skills: The game loop
← Discs in their colors Where does the disc land? →