https://github.com/poypoyan/cli-game-greed
My comparable implementations of "Greed" CLI game in Python and Zig
https://github.com/poypoyan/cli-game-greed
cli cli-game python zig
Last synced: about 2 months ago
JSON representation
My comparable implementations of "Greed" CLI game in Python and Zig
- Host: GitHub
- URL: https://github.com/poypoyan/cli-game-greed
- Owner: poypoyan
- License: gpl-3.0
- Created: 2024-04-17T17:23:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-07T13:58:55.000Z (10 months ago)
- Last Synced: 2026-02-19T05:04:17.739Z (4 months ago)
- Topics: cli, cli-game, python, zig
- Language: Zig
- Homepage:
- Size: 45.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Greed CLI Game
This is an implementation of [Greed](https://www.youtube.com/watch?v=XQHq6tdxylk) in Python and Zig. Controls are as follows:
```
q w e
\|/
a-+-d
/|\
z x c
```
However, this is editable through `CONTROL` variable. Also, press <space> to quit, but this is also editable through `QUITKEY` variable.
### Python
At least Python 3.6 is required because of **f-strings**. Required third-party library is **readchar** (for getch/get a keypress). Note that as of writing, readchar only works for Linux and Windows. To install:
```console
pip install readchar
```
### Zig
Zig 0.15.1 is required. Works for Linux and Windows. To compile:
```console
zig build-exe -lc greed.zig
```
## License
GPLv3 FTW!