You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,11 @@ There are **three functions** that Sudoku-Suite provides the developer, along wi
27
27
28
28
*`Grid`
29
29
* An object that represents a 9x9 Sudoku grid. The `Grid` object does not validate the grid in any way, i.e, it only holds the grid and values inside it.
30
+
* While initialising, if the given values are invalid, an `std::invalid_argument` exception is thrown.
30
31
**Check out the examples below to see how we can initialise and use this object!*
31
32
*`void solve(Grid *grid)`
32
33
* A function that takes in a pointer to a `Grid` object and solves the Sudoku puzzle present in it. Returns nothing.
34
+
* If the puzzle cannot be solved, a `std::logic_error` exception is thrown.
33
35
*`bool is_valid_solution(Grid &grid)`
34
36
* A function that takes in a `Grid` object and returns a `bool` with a value of `true` if the `Grid` object contains a finished and valid Sudoku solution.
0 commit comments