README.md
changeset 21 db2eacbac9b6
parent 20 1110dfef8964
equal deleted inserted replaced
20:1110dfef8964 21:db2eacbac9b6
    29 (If you use the Mercurial repository, you have to update the import path manually.)
    29 (If you use the Mercurial repository, you have to update the import path manually.)
    30 
    30 
    31 Pre-built binaries are available on the
    31 Pre-built binaries are available on the
    32 [Github Release page](https://github.com/McKael/takuzu/releases).
    32 [Github Release page](https://github.com/McKael/takuzu/releases).
    33 
    33 
       
    34 The utility was written for personal use and is not very user-friendly, but it
       
    35 should be reasonably efficient (I've been able to generate boards up to 50x50).
       
    36 Here are a few examples to get started:
       
    37 
       
    38 Build new 6x6 puzzle:
       
    39 ```
       
    40 % gotak --new 6
       
    41 
       
    42 . . . . . .
       
    43 0 . . . . 0
       
    44 . . 1 . . .
       
    45 . . . . 1 .
       
    46 1 . 0 0 . .
       
    47 1 . . . . .
       
    48 ```
       
    49 
       
    50 Solve the board:
       
    51 ```
       
    52 % gotak --board ......0....0..1.......1.1.00..1.....
       
    53 
       
    54 . . . . . .
       
    55 0 . . . . 0
       
    56 . . 1 . . .
       
    57 . . . . 1 .
       
    58 1 . 0 0 . .
       
    59 1 . . . . .
       
    60 
       
    61 
       
    62 0 1 1 0 0 1
       
    63 0 1 0 1 1 0
       
    64 1 0 1 1 0 0
       
    65 0 0 1 0 1 1
       
    66 1 1 0 0 1 0
       
    67 1 0 0 1 0 1
       
    68 ```
       
    69 
       
    70 (You can get the board string with the `--out` flag when generating new puzzles.)
       
    71 
       
    72 Create a PDF with a takuzu puzzle:
       
    73 ```
       
    74 % gotak --new 10 --to-pdf /tmp/takuzu.pdf
       
    75 ```
       
    76 
    34 # Online puzzle demo
    77 # Online puzzle demo
    35 
    78 
    36 This library is used by GotakJS, an [online takuzu puzzle game](https://lilotux.net/~mikael/takuzu/),
    79 This library is used by GotakJS, an [online takuzu puzzle game](https://lilotux.net/~mikael/takuzu/),
    37 written in Go using [GopherJS](https://github.com/gopherjs/gopherjs).
    80 written in Go using [GopherJS](https://github.com/gopherjs/gopherjs).
    38 (On mobile, works best with Chrome.  On a computer, I've tested it with both Firefox and Chrome.)
    81 (On mobile, works best with Chrome.  On a computer, I've tested it with both Firefox and Chrome.)