Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mossr/pacman.jl
PacMan in the Julia REPL
https://github.com/mossr/pacman.jl
Last synced: about 1 month ago
JSON representation
PacMan in the Julia REPL
- Host: GitHub
- URL: https://github.com/mossr/pacman.jl
- Owner: mossr
- License: mit
- Created: 2023-10-13T07:48:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-23T23:56:59.000Z (about 1 year ago)
- Last Synced: 2024-10-09T06:54:12.201Z (about 1 month ago)
- Language: Julia
- Homepage:
- Size: 1.42 MB
- Stars: 20
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PacMan.jl
The game of PacMan in the Julia REPL.
## Installation
```julia
] add https://github.com/mossr/PacMan.jl
```## Gameplay
```julia
using PacMan
play()
```- Hit `backtick` to pause the game.
- Resume with `play()` or restart the game with `restart()`## 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## Other options
- `play(maze_type=2)`: Change to the 17x19 PocMan maze from Silver et al. (2010).
- `play(maze_type=3)`: Change to the 9x18 PacMan maze.
- `play(maze_type=4)`: Change to the SISL maze (Stanford Intelligent Systems Laboratory).
- `play(maze_type=5)`: Change to the Stanford tree "S" logo maze
> ⚠ Work-in-progress.
---
[Robert Moss](http://robert-moss.com/)