1 unstable release

0.1.0 Sep 5, 2024

#1244 in Parser implementations

Download history 167/week @ 2024-09-03 7/week @ 2024-09-10

174 downloads per month
Used in mimosi

Custom license

11KB
177 lines

MazeParser

A format for defining mazes and a parser for reading it from text.

Maze Text Format

Key Description
SP Starting Point. Which cell the mouse starts in. Format: x, y
SD Starting Direction. Which direction the mouse should face to start. Can be one of: R, L, U, D
FI Finish. Where the finish should be placed. Format: x,y; size
FR Maze Friction.
.R followed by a number Defines walls in the row with the number after .R
.C followed by a number Defines walls in the column with the number after .C

Lines without : and lines starting with a # are ignored.

Dependencies

~4.5MB
~126K SLoC