/REPLMaze.jl

A maze game in the Julia REPL

Primary LanguageJuliaMIT LicenseMIT

REPLMaze.jl

A maze game in the Julia REPL.

Mazes are randomly generated using a depth-first search (DFS).

Partial observability

Press p to turn on partial observability (i.e., can only see through a 5x5 window).

  • - to decrease the partially observable window
  • = to increase the partially observable window
  • o to reset the partially observable window

Installation

] add https://github.com/mossr/REPLMaze.jl

Gameplay

using REPLMaze

The game will start automatically.

  • Hit backtick to pause the game.
  • Resume with play()

Controls (wasd)

  • a and d to apply left and right velocity
  • s to apply down velocity
  • w to apply up velocity
  • backtick to pause, then play() to resume
  • r for a new map
  • p to turn on partial observablility (window)
  • - to decrease the partially observable window
  • = to increase the partially observable window
  • o to reset the partially observable window

Other options

  • play(w=25, h=25): Change the width and height of the generated maze.
  • play(po=true): Start the game in partially observable mode.
  • play(agent="🐭", flag="🧀"): Set the agent and flag icons (e.g., use \:mouse:<TAB> in the REPL).


Robert Moss