suggestNextMove

Suggests the next possible move by identifying an empty cell with exactly one valid number that can be placed in it. The suggestion is based on a randomized order of empty cells.

Return

A SudokuMove indicating the row, column, and value of the suggested move, or null if no move is suggested.

Parameters

grid

The current grid represented as a 2D array of integers.