Chetyre (chetyre (четыре) is Russian for “four”) is an imitation of Tetris. The game is written in C and runs in a UNIX text-mode terminal. The source code is available under a BSD-style license. No libraries are used other than the C library. The code has been tested on Linux and should work on other UNIX systems. I have also included x86/Linux/glibc binaries. If you are running an average Linux system on a PC, and want to run the program without compiling any code, you want the binary.
This version prevents display glitches and flickering and improves support for various terminal emulators. It has been tested on XFCE terminal, xterm, uxterm, uuterm, st, and the Linux terminal. It also modifies scoring and the speed increase curve to improve gameplay experience.
To compile: cc -o chetyre chetyre-3.c
On Linux, after downloading the binary, you need to set it as
executable. Do this by cd
ing to the folder you downloaded it
to and running chmod +x
binary, replacing binary
with the name of the file you downloaded. To run, type
./
binary, again replacing binary with the name
of the file you downloaded. If you want to be able to play just by typing
chetyre
, run sudo cp
binary
/usr/bin/chetyre
.
This is the original version.
To compile: cc -o chetyre chetyre.c
On Linux, after downloading the binary, you need to set it as
executable. Do this by cd
ing to the folder you downloaded it
to and running chmod +x
binary, replacing binary
with the name of the file you downloaded. To run, type
./
binary, again replacing binary with the name
of the file you downloaded. If you want to be able to play just by typing
chetyre
, run sudo cp
binary
/usr/bin/chetyre
.
You can contact me by email at william (at) haddonthethird (dot) net.