/mazes-for-programmers

Primary LanguageGoApache License 2.0Apache-2.0

Mazes for Programmers

Mazes for Programmers is a book written by Jamis Buck and published by The Pragmatic Bookshelve.

The alogrithms and implementations in the book are all written in Ruby. This repository contains my implementation written in Go.

Prerequisites

  1. Go 1.17

Setup

$ git clone git@github.com:ChrisWilding/mazes-for-programmers.git
$ cd ./mazes-for-programmers
$ go build

Usage

$ ./mazes-for-programmers -w 10 -h 10 -a sidewinder -o sidewinder.png

This is an example of a maze generated using the binary tree algorithm

A maze generated using the binary tree alorithm

This is an example of a maze generated using the sidewinder algorithm

A maze generated using the sidewinder alorithm

Testing

$ go test ./...