This repository is a Rust implementation of the pacman4console game originally written in C. The original project can be found at: pacman4console.
- Download the latest version of binary based on your system Download (aarch64 for ARM based processor and x86_64 for AMD based processors)
- Unzip the file
- Go to the
releasedirectory - Open Terminal (PowerShell or CMD if you are Windows user)
- Run the app with the below format:
./pacman <level number>
Note
For example, to play level 9: ./pacman 9
- Pull the image
docker pull ghcr.io/arsalanyavari/pacman4console:latest - Run container and get Bash from the container
- Run the app with the below format:
./pacman <level number>
Note
For example, to play level 9: ./pacman 9
To run the game in debug mode, use the following command:
cargo run -- <level number>Note
For example, to play level 9: cargo run -- 9
To build the game in release mode, run:
cargo build --releaseThen, navigate to the release directory and run the game:
cd ./target/release
./pacman <level number>Note
For example, to play level 9: ./pacman 9
Warning
The Levels/ directory that exists in the debug/ or release/ directory must be placed beside the pacman executable when running the game. Ensure the level files are correctly positioned, or the game may not function as expected.