Code Monkey home page Code Monkey logo

maze-booklet's Introduction

As a way to learn the Raku language, I worked through the book Mazes for Programmers by Jamis Buck, rewriting all the maze algorithms into Raku. I then wrote a program to create a PDF of a "Booklet O' Mazes" for all the kids in my extended family.

This repository contains:

  • Raku versions of the maze algorithms and grids from Mazes for Programmers. Mazes are generated as SVG instead of PNG used in the book.
  • The Raku program bin/maze-booklet to generate a PDF of mazes.
  • An example bash script examples/larry.sh (for Larry Wall) showing how to generate a booklet, along with the resulting booklet examples/larry.pdf and its solutions examples/larry-solution.pdf.

The code in this repository requires the following Raku modules:

  • SVG
    • To generate mazes as SVG.
  • GD::Raw
    • To parse image masks and turn them into mazes.
  • Image::Resize
    • To resize image masks as needed.

And the following programs are also required:

  • google-chrome
    • To convert HTML/SVG files to PDF via --headless mode.
  • pdftk
    • To combine multiple PDFs into a single file.

maze-booklet's People

Contributors

raiph avatar randyl avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.