@hackage puzzle-draw0.1.0.2
Creating graphics for pencil puzzles.
Installation
Dependencies (11)
- SVGFonts >=1.4 && <1.5
- aeson >=0.7 && <0.8
- base >=4.2 && <4.8
- containers >=0.5 && <0.6
- diagrams-lib >=1.1 && <1.2
- hashable >=1.2 && <1.3 Show all…
Dependents (2)
@hackage/acme-everything, @hackage/puzzle-draw-cmdline
puzzle-draw
puzzle-draw is a library for drawing pencil puzzles using Diagrams. It aims to provide a utility layer on top of Diagrams to help with drawing arbitrary puzzles, as well as supporting several specific puzzle types directly. In addition, it includes functionality for parsing puzzle data from a YAML file format.
See puzzle-draw-cmdline for a command line tool that uses this.
Examples
A liar slitherlink with solution:

This was rendered from the following YAML document:
type: slitherlinkliar
puzzle: |
1..0.3
.03222
0....1
3....3
32202.
3.3..3
solution:
loop: |
.┌──┐┌┐
.│┌─┘││
.│└──┘│
┌┘.┌─┐│
└┐┌┘.││
┌┘│..││
└─┘..└┘
liars: |
...X..
.X....
X.....
.....X
....X.
..X...
Or see a puzzle set that covers the puzzle types that are supported currently.
