Closed benjstorlie closed 1 year ago
Now, instead of valuesArray and candidatesArray and colorsArray, there's just 1 gameArray
/** @type {[Cell[][], React.Dispatch<React.SetStateAction<Cell[][]>>]} */ const [gameArray , setGameArray] = useState(blankGameArray());
where blankGameArray gives a 9x9 matrix with Cell-type objects, like this
{ value: 0, candidates: new Set([]), // empty set given: false, color: '', }
Now, instead of valuesArray and candidatesArray and colorsArray, there's just 1 gameArray
where blankGameArray gives a 9x9 matrix with Cell-type objects, like this