From 2b522ee680ac202cc1612c32fcbdfc5a376ab16c Mon Sep 17 00:00:00 2001 From: Min Shin Khant Date: Sat, 6 Apr 2019 15:41:45 -0400 Subject: [PATCH] changed the 'bool solve_sudoku' I changed 'bool solve_soduko' to 'bool solve_sudoku' --- Source.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source.cpp b/Source.cpp index 39534b0..736bf05 100644 --- a/Source.cpp +++ b/Source.cpp @@ -104,9 +104,9 @@ std::pair get_unassigned_location(int grid[DIM][DIM]) // Takes a partially filled-in grid and attempts to assign values to // all unassigned locations in such a way to meet the requirements // for Sudoku solution (non-duplication across rows, columns, and boxes) -bool solve_soduko(int grid[DIM][DIM]) +bool solve_sudoku(int grid[DIM][DIM]) { - // If the Soduko grid has been filled, we are done + // If the Sudoku grid has been filled, we are done if (GRID_FULL == get_unassigned_location(grid)) { return true; @@ -132,7 +132,7 @@ bool solve_soduko(int grid[DIM][DIM]) // return true, then all of our number placements // on the Soduko grid are valid and we have fully // solved it - if (solve_soduko(grid)) + if (solve_sudoku(grid)) { return true; } @@ -167,14 +167,14 @@ int main() print_grid(grid); - if (true == solve_soduko(grid)) + if (true == solve_sudoku(grid)) { print_grid(grid); } else { - cout << "No solution exists for the given Soduko" << endl << endl; + cout << "No solution exists for the given Sudoku" << endl << endl; } return 0; -} \ No newline at end of file +}