Workshop › Wordle-style Word Guess › Step 5 of 26
There are six tries, so six rows. A second loop around the first repeats the whole row, each one SIZE + GAP lower.
```js
const TRIES = 6
for (let row = 0; row < TRIES; row++) {
for (let i = 0; i < 5; i++) {
const x = LEFT + i * (SIZE + GAP)
const y = TOP + row * (SIZE + GAP)
ctx.strokeStyle = '#3f3f46'
ctx.lineWidth = 2
ctx.strokeRect(x + 1, y + 1, SIZE - 2, SIZE - 2)
}
}
```TRIES is the number of guesses.y moves down SIZE + GAP pixels per row.const SIZE, write const TRIES = 6.draw, wrap the loop in the row loop, and change const y = TOP to use row. Press Run.Skills: Loops
← A row of five tiles Draw again and again →