https://github.com/Chemaclass/phel-snake
The snake game using the CLI terminal written in phel.
https://github.com/Chemaclass/phel-snake
functional-programming phel phel-lang php
Last synced: 3 days ago
JSON representation
The snake game using the CLI terminal written in phel.
- Host: GitHub
- URL: https://github.com/Chemaclass/phel-snake
- Owner: Chemaclass
- Created: 2022-06-09T15:52:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2026-04-21T10:42:21.000Z (2 months ago)
- Last Synced: 2026-04-21T12:21:14.208Z (2 months ago)
- Topics: functional-programming, phel, phel-lang, php
- Language: PHP
- Homepage: https://phel-lang.org/
- Size: 2.1 MB
- Stars: 16
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-phel - phel-snake - Snake game for the CLI terminal. (Projects & Apps / Games)
README
# Phel Snake
A CLI snake game written in [Phel](https://phel-lang.org/).

## Quick start
```bash
docker-compose up --build -d
docker exec -it phel_snake ./tools/composer play
```
Or locally (PHP `>=8.3`):
```bash
./tools/composer install
./tools/composer play
```
Use the arrow keys to move, `P` to pause, `R` to replay the last run
on the game-over screen.
## Documentation
- [Setup](docs/setup.md)
- [Controls](docs/controls.md)
- [Game modes](docs/modes.md) — simple, full, two-player
- [Features](docs/features.md) — power-ups, combos, obstacles, levels, wrap, high-score, replay
- [Options](docs/options.md) — full CLI reference