Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deepgrace/tetris

Stunning Tetris in all kinds of Languages (C, C++, Go, Shell)♦️
https://github.com/deepgrace/tetris

c cpp go rust shell tetris

Last synced: 28 days ago
JSON representation

Stunning Tetris in all kinds of Languages (C, C++, Go, Shell)♦️

Awesome Lists containing this project

README

        

# Tetris [![LICENSE](https://img.shields.io/github/license/deepgrace/tetris.svg)](https://github.com/deepgrace/tetris/blob/master/LICENSE_1_0.txt)

> **Stunning Tetris in all kinds of Languages(C, C++, Go, Shell)**

# Linux Platform

## Algorithm
[][][]
[][][] [][][][]
[] [][][] [][]
[][] [][] [] [][][][] [][][][][] [][] [][] [] [][] [][]
[] row [] [] [] (x-m)*zoomx [][] [] cos(a) sin(a) [] [] [] m []
[] [] = [] [] [] [] [] [] + [] []
[] col [] [] [] (y-n)*zoomy [] [] -sin(a) cos(a) [] [] [] n []
[][] [][] [] [][][][] [][][][] [][] [][] [] [][] [][]
[] []
[][][] [][][]

## Run
runlevel : Complexity of the pieces ( Default 31 )
previewlevel : Number of the pieces to be previewed ( Default 6 )
speedlevel : Speed of the current piece's descent ( Default 0 )
width : Width of the view ( Default 25 )
height : Height of the view ( Default 30 )

Usage : ./tetris [ [ [ [ [height] ] ] ] ]
Range : [ 0 <= runlevel <= 31 ] [ previewlevel >= 1 ] [ speedlevel <= 30 ] [ width >= 17 ] [ height >= 10 ]
Notice : runlevel previewlevel speedlevel width height belong to integer