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]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 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 && <0.8), base (>=4.2 && <4.8), containers (>=0.5 && <0.6), diagrams-lib (>=1.1 && <1.2), hashable (>=1.2 && <1.3), parsec (>=3.1 && <3.2), SVGFonts (>=1.4 && <1.5), text (>=1.1 && <1.2), unordered-containers (>=0.2 && <0.3), 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 2014-05-19T19:56:49Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 5195 total (24 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

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.