Skip to content

Commit

Permalink
correct output in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanesmith committed Jan 6, 2018
1 parent 28bee44 commit a8b9b41
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions README.md
Expand Up @@ -21,35 +21,35 @@ An executable will be created: sudoku-solver
After building the executable, sudoku-solver, run it:

```
| $ ./sudoku-solver
| -------------------------------
| | 1 . . | . . 7 | . 9 . |
| | . 3 . | . 2 . | . . 8 |
| | . . 9 | 6 . . | 5 . . |
| -------------------------------
| | . . 5 | 3 . . | 9 . . |
| | . 1 . | . 8 . | . . 2 |
| | 6 . . | . . 4 | . . . |
| -------------------------------
| | 3 . . | . . . | . 1 . |
| | . 4 . | . . . | . . 7 |
| | . . 7 | . . . | 3 . . |
| -------------------------------
|
| Here is the solution:
| -------------------------------
| | 1 6 2 | 8 5 7 | 4 9 3 |
| | 5 3 4 | 1 2 9 | 6 7 8 |
| | 7 8 9 | 6 4 3 | 5 2 1 |
| -------------------------------
| | 4 7 5 | 3 1 2 | 9 8 6 |
| | 9 1 3 | 5 8 6 | 7 4 2 |
| | 6 2 8 | 7 9 4 | 1 3 5 |
| -------------------------------
| | 3 5 6 | 4 7 8 | 2 1 9 |
| | 2 4 1 | 9 3 5 | 8 6 7 |
| | 8 9 7 | 2 6 1 | 3 5 4 |
| -------------------------------
$ ./sudoku-solver
-------------------------------
| 1 . . | . . 7 | . 9 . |
| . 3 . | . 2 . | . . 8 |
| . . 9 | 6 . . | 5 . . |
-------------------------------
| . . 5 | 3 . . | 9 . . |
| . 1 . | . 8 . | . . 2 |
| 6 . . | . . 4 | . . . |
-------------------------------
| 3 . . | . . . | . 1 . |
| . 4 . | . . . | . . 7 |
| . . 7 | . . . | 3 . . |
-------------------------------
Here is the solution:
-------------------------------
| 1 6 2 | 8 5 7 | 4 9 3 |
| 5 3 4 | 1 2 9 | 6 7 8 |
| 7 8 9 | 6 4 3 | 5 2 1 |
-------------------------------
| 4 7 5 | 3 1 2 | 9 8 6 |
| 9 1 3 | 5 8 6 | 7 4 2 |
| 6 2 8 | 7 9 4 | 1 3 5 |
-------------------------------
| 3 5 6 | 4 7 8 | 2 1 9 |
| 2 4 1 | 9 3 5 | 8 6 7 |
| 8 9 7 | 2 6 1 | 3 5 4 |
-------------------------------
```

To modify the Sudoku puzzle, edit: `main.cpp`
Expand Down

0 comments on commit a8b9b41

Please sign in to comment.