Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)♦️
- Host: GitHub
- URL: https://github.com/deepgrace/tetris
- Owner: deepgrace
- License: bsl-1.0
- Created: 2017-08-14T12:03:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-05-11T14:57:17.000Z (over 2 years ago)
- Last Synced: 2024-08-03T23:30:32.857Z (4 months ago)
- Topics: c, cpp, go, rust, shell, tetris
- Language: C
- Homepage:
- Size: 136 KB
- Stars: 73
- Watchers: 8
- Forks: 28
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE_1_0.txt
Awesome Lists containing this project
- awesome-golang-repositories - tetris
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