Workshop › Sudoku › Step 6 of 28
One cell is selected: the one your next digit goes into. It starts in the middle and is painted blue.
```js
let selected
selected = { r: 4, c: 4 }
let fill = '#ffffff'
if (r === selected.r && c === selected.c) fill = '#93c5fd'
ctx.fillStyle = fill
```selected is a row and a column; reset puts it at the center, (4, 4).let given, write let selected; in reset, set it to the middle.draw, choose the cell's color with fill.Skills: Game states
← Keep drawing Light up row, column and box →