An open API service indexing awesome lists of open source software.

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

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!