Chetyre

Command Line Tetris Clone


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.

Version 3 - March 24, 2018

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.

Source Code

To compile: cc -o chetyre chetyre-3.c

Binaries

On Linux, after downloading the binary, you need to set it as executable. Do this by cding 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.

Version 1 - October 24, 2011

This is the original version.

Source Code

To compile: cc -o chetyre chetyre.c

Binaries

On Linux, after downloading the binary, you need to set it as executable. Do this by cding 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.


Home

You can contact me by email at william (at) haddonthethird (dot) net.