Home

Awesome

shtris

The pure shell script (sh) that implements the Tetris game following the Tetris Guideline (2009).

The aim is to understand more about shell script and Tetris algorithms.

Tetris Guideline. Tetris Wiki. accessed at 2020-05-23.

This script is based on dkorolev/bash-tetris.<br> Thank you!

I've implemented the following

Usage

# Download (v3.0.0)
wget https://raw.githubusercontent.com/ContentsViewer/shtris/v3.0.0/shtris
chmod +x shtris

./shtris
<details> <summary>Show Help</summary>
$ ./shtris -h

Usage: shtris [options]

Options:
 -d, --debug          debug mode
 -l, --level <LEVEL>  game level (default=1). range from 1 to 15
 --rotation <MODE>    use 'Super' or 'Classic' rotation system
                      MODE can be 'super'(default) or 'classic'
 --lockdown <RULE>    Three rulesets —Infinite Placement, Extended, and Classic—
                      dictate the conditions for Lock Down.
                      RULE can be 'extended'(default), 'infinite', 'classic'
 --seed <SEED>        random seed to determine the order of Tetriminos.
                      range from 1 to 4294967295.
 --no-color           don't display colors
 --no-beep            disable beep
 --hide-help          don't show help on start

 -h, --help     display this help and exit
 -V, --version  output version infromation and exit

Version:
 3.0.0
</details>

shtris

Enjoy :-)

Supported Environments

EnvironmentSupport
Linux sho
FreeBSD sho
BusyBox sho
Solaris sho (Almost works)

Author

IOE <Github: @ContentsViewer>