项目作者: ContentsViewer

项目描述 :
Tetris game written in pure shell (sh). followed the Tetris guideline(2009)
高级语言: Shell
项目地址: git://github.com/ContentsViewer/sh-tetris.git
创建时间: 2020-05-21T13:37:25Z
项目社区:https://github.com/ContentsViewer/sh-tetris

开源协议:MIT License

下载


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.

Thank you!

I’ve implemented the following

  • Hold Queue
  • Next Queue
  • Random Generation with Bag System
  • Score System
  • Variable Goal System
  • T-Spin / Mini T-Spin
  • Back-to-Back Bonus
  • Extended Placement / Infinite Placement / Classic Lock Down
  • Super / Classic Rotation System
  • Changing the Starting Level
  • Ghost Piece

Usage

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

Show Help

shellsession $ ./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

shtris

Enjoy :-)

Supported Environments

Environment Support
Linux sh o
FreeBSD sh o
BusyBox sh o
Solaris sh o (Almost works)

Author

IOE @ContentsViewer](https://github.com/ContentsViewer)>