summaryrefslogtreecommitdiff
path: root/macros/context/contrib/context-sudoku/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'macros/context/contrib/context-sudoku/README.md')
-rw-r--r--macros/context/contrib/context-sudoku/README.md15
1 files changed, 10 insertions, 5 deletions
diff --git a/macros/context/contrib/context-sudoku/README.md b/macros/context/contrib/context-sudoku/README.md
index f9ffa7b04e..fee6d7f25b 100644
--- a/macros/context/contrib/context-sudoku/README.md
+++ b/macros/context/contrib/context-sudoku/README.md
@@ -1,13 +1,16 @@
# sudoku
This is a ConTeXt port of a famous sudoku solver by Peter Norvig. It
-provides four commands, as well as a command handler:
+provides five commands, as well as a command handler:
1. `\sudoku` typesets a sudoku if valid.
2. `\sudokufile` typesets a sudoku from a file if valid.
3. `\solvesudoku` solves a sudoku if valid.
-3. `\solvesudokufile` solves a sudoku from a file if valid.
-5. `\setupsudoku` is the command handler for commands above.
+4. `\solvesudokufile` solves a sudoku from a file if valid.
+5. `\randomsudoku` creates a random, unsolved sudoku.
+6. `\sudokubuffer` typesets a sudoku from a buffer.
+7. `\solvesudokubuffer` solves a sudoku from a buffer if valid.
+8. `\setupsudoku` is the command handler for commands above.
`\setupsudoku` understands the following parameters:
@@ -18,7 +21,8 @@ provides four commands, as well as a command handler:
evenbackground=color,
oddbackground=color,
evenbackgroundcolor=darkred,
- oddbackgroundcolor=darkblue]
+ oddbackgroundcolor=darkblue,
+ n=17] % for random sudokus
```
As you might notice, sudokus are just `TABLE`'s in disguise, but only
@@ -34,7 +38,8 @@ something like this:
[placeholdercommand=\inframed,
placeholderlabela=First error,
placeholderlabelb=Second error,
- placeholderlabelc=Third error]
+ placeholderlabelc=Third error,
+ placeholderlabeld=Number too low]
```
For actual examples, check `t-sudoku.mkvi`.