https://github.com/ashish0kumar/pacmango
🥠Classic pacman for the terminal, written in Go
https://github.com/ashish0kumar/pacmango
go ncurses ncurses-game pacman terminal-game
Last synced: 10 months ago
JSON representation
🥠Classic pacman for the terminal, written in Go
- Host: GitHub
- URL: https://github.com/ashish0kumar/pacmango
- Owner: ashish0kumar
- License: mit
- Created: 2025-08-11T12:46:57.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-13T13:07:44.000Z (10 months ago)
- Last Synced: 2025-08-28T15:59:54.521Z (10 months ago)
- Topics: go, ncurses, ncurses-game, pacman, terminal-game
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 9
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pacmango
Classic pacman for the terminal, written in Go
---
## Features
- **Authentic Pacman gameplay** with pellets, power-ups, ghosts, and scoring
- **9 challenging levels** with progressive difficulty and unique maze layouts
- **Smooth continuous movement** with pending direction system for responsive controls
- **Intelligent ghost AI** that chases and flees based on power-up state
- **Terminal-optimized UI** using goncurses
- **Cross-platform compatibility** - runs anywhere Go runs
## Installation
### Via `go install`
```bash
go install github.com/ashish0kumar/pacmango@latest
```
### Build from Source
```bash
# Clone the repository
git clone https://github.com/ashish0kumar/pacmango.git
cd pacmango
# Build the application
go build
# Move to a directory in your PATH
sudo mv pacmango /usr/local/bin/
```
## Usage
```bash
# Start the game
pacmango
# Start from a specific level
pacmango --level 5
```
### Controls
- **Arrow Keys** or **WASD**: Move Pacman
- **P**: Pause/unpause the game
- **Q**: Quit the game
### Gameplay
- Eat all pellets (`.`) to complete the level
- Power-ups (`*`) make you invincible and allow you to eat ghosts
- Avoid ghosts unless you're invincible
- Score points by eating pellets and ghosts
## Acknowledgements
- Original Pacman by Namco
- [goncurses](https://github.com/rthornton128/goncurses) for terminal UI capabilities
## Contributing
Contributions are welcome! If you have ideas for improvements or bug reports, please feel free to open an issue or submit a pull request.
© 2025-present Ashish Kumar