Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mossr/replmaze.jl
A maze game in the Julia REPL
https://github.com/mossr/replmaze.jl
Last synced: about 1 month ago
JSON representation
A maze game in the Julia REPL
- Host: GitHub
- URL: https://github.com/mossr/replmaze.jl
- Owner: mossr
- License: mit
- Created: 2023-10-20T01:44:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-22T00:30:27.000Z (about 1 year ago)
- Last Synced: 2024-10-09T17:18:00.219Z (about 1 month ago)
- Language: Julia
- Size: 1.05 MB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```julia
] add https://github.com/mossr/REPLMaze.jl
```## Gameplay
```julia
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:` in the REPL).
---
[Robert Moss](http://web.stanford.edu/~mossr)