puzzle-draw: Creating graphics for pencil puzzles.

[ graphics, library, mit, program ] [ Propose Tags ]

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.


[Skip to Readme]
Versions [faq] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.2.0.0, 0.3.0.0
Change log CHANGES.md
Dependencies aeson (==0.7.*), base (>=4.2 && <4.8), containers (==0.5.*), diagrams-lib (==1.1.*), hashable (==1.2.*), parsec (==3.1.*), SVGFonts (==1.4.*), text (==1.1.*), unordered-containers (==0.2.*), vector-space (>=0.8), yaml (>=0.8.4 && <0.9) [details]
License MIT
Author Robert Vollmert
Maintainer rfvollmert@gmail.com
Category Graphics
Source repo head: git clone http://github.com/robx/puzzle-draw.git
Uploaded by vollmert at Mon May 19 19:56:49 UTC 2014
Distributions NixOS:0.3.0.0
Downloads 2683 total (58 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for puzzle-draw-0.1.0.3

[back to package description]

Build Status

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:

Liar Slitherlink

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.