diff --git a/README.org b/README.org new file mode 100644 index 0000000..74b40c9 --- /dev/null +++ b/README.org @@ -0,0 +1,37 @@ +* Minotaur + +[[file:minotaur.jpg]] + +~minotaur~ is a terminal maze game, written in June-August of 2020. Guide Theseus (magenta) to the exit (green) before the Minotaur (yellow) catches you. + +The maze is generated with the [[https://weblog.jamisbuck.org/2011/1/27/maze-generation-growing-tree-algorithm][growing tree algorithm]]. + +[[file:maze.mp4]] + +At each tick, the Minotaur advances one cell along the shortest path toward Theseus. When the game ends, it prints your survival time in seconds. + +[[file:minotaur.mp4]] + +** Usage + +#+begin_src shell +minotaur [-h ROWS] [-w COLUMNS] [-t MS] +#+end_src + +Flags: + +- =-h= — height in terminal rows (default: terminal rows) +- =-w= — width in terminal columns (default: terminal columns) +- =-t= — milliseconds between Minotaur movements (default: 250) + +** Controls + +- Arrow keys — move Theseus +- =s= — toggle the shortest path to the exit (blue) +- =q= — quit + +** Installation + +#+begin_src shell +go install code.chimeric.al/dwrz/minotaur/cmd/minotaur@latest +#+end_src diff --git a/maze.mp4 b/maze.mp4 new file mode 100644 index 0000000..13e87a6 Binary files /dev/null and b/maze.mp4 differ diff --git a/minotaur.jpg b/minotaur.jpg new file mode 100644 index 0000000..b939c50 Binary files /dev/null and b/minotaur.jpg differ diff --git a/minotaur.mp4 b/minotaur.mp4 new file mode 100644 index 0000000..6fd990e Binary files /dev/null and b/minotaur.mp4 differ