Skip to content
/ tetris Public
forked from deepgrace/tetris

Awesome Tetris in all kinds of Languages(C, C++, Go, Shell)

License

Notifications You must be signed in to change notification settings

prusu01/tetris

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris LICENSE

Awesome Tetris in all kinds of Languages(C, C++, Go, Shell)

Screenshots

Tetris

Color

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 [ <runlevel> [ <previewlevel> [ <speedlevel> [ <width> [height] ] ] ] ] 
 Range        :  [ 0 <= runlevel <= 31 ] [ previewlevel >= 1 ] [ speedlevel <= 30 ] [ width >= 17 ] [ height >= 10 ]
 Notice       :  runlevel previewlevel speedlevel width height belong to integer

About

Awesome Tetris in all kinds of Languages(C, C++, Go, Shell)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 43.7%
  • C++ 27.7%
  • Go 26.5%
  • Rust 1.7%
  • Makefile 0.4%