Skip to content

My comparable implementations of "Greed" CLI game in Python and Zig

License

Notifications You must be signed in to change notification settings

poypoyan/cli-game-greed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Greed CLI Game

This is an implementation of Greed 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:

pip install readchar

Zig

Zig 0.12 is required. Works for Linux and Windows, although a cross-platform getch package for Zig is still a TODO. To compile:

zig build-exe -lc greed.zig

License

GPLv3 FTW!

About

My comparable implementations of "Greed" CLI game in Python and Zig

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published