Workshop › Sokoban › Step 28 of 29
Show the record next to the move counter, so the player always knows the number to beat: Moves: 12 (best 9).
```js
ctx.textAlign = 'right'
const record = best[level] === undefined ? '' : ' (best ' + best[level] + ')'
ctx.fillText('Moves: ' + moves + record, canvas.width - 12, TOP / 2)
```record is empty text ('') with no record, or ' (best 9)' with one.In draw, above the Moves line, write the record line and add + record to the text. Press Run and solve a
level.
Skills: Drawing on a canvas
← A record for every level Build it yourself: count the pushes →