Skip to content

Commit

Permalink
readme: add images
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryp authored Nov 4, 2023
1 parent 3dcebf0 commit 15eaade
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ zig build run -- 3 3 72..96..3...2.5....8...4.2........6.1.65.38.7.4........3.8.
```
NOTE: The sudoku string has to contain valid clue characters, anything else is considered as an empty cell.

![image](https://github.com/Ryp/sudoku-zig/assets/1625198/1e333afa-67a0-49b1-876a-8b180dd0b525)

## Controls

| Action | Key |
Expand All @@ -32,12 +34,17 @@ NOTE: The sudoku string has to contain valid clue characters, anything else is c
## Examples

### 4x3 sudoku

```sh
zig build run -- 4 3 8.9....B.4C.C......3.B9...B5..A8.2...2.4..5........9........7...1B69...32...C47A...B........5........1..A.7...5.87..13...8A.3......2.14.5....8.C
```

![image](https://github.com/Ryp/sudoku-zig/assets/1625198/4368f413-929f-46ea-a1fd-ce00478b7131)

### Jigsaw sudoku
```sh
zig build run -- 3 3 .38.4.1...6.9532......6....97......54..........5..2......6..8...57....6.34.8..... 111111222113444422133455442334455222366657777366559997366659977386858997888888997
```
NOTE: Jigsaw puzzles need a second string that matches each cell with its associated region, so it's like the sudoku string but instead of clues you write the region index

![image](https://github.com/Ryp/sudoku-zig/assets/1625198/5982b7f8-c556-40ea-bc1b-68583388342f)

0 comments on commit 15eaade

Please sign in to comment.