Repository navigation
forked from yongye/shell
Folders and files
Repository files navigation
Tetris Game // The Art Of Shell Programming ===================================================================== ##################################################################### # # # License: Boost Ver 1.0+ # # Project: https://github.com/yongye/c # # Project: https://github.com/yongye/go # # Project: https://github.com/yongye/cpp # # Project: https://github.com/yongye/shell # # Author : YongYe <[email protected]> # # # ##################################################################### Tetris_Game.sh : Matrix-based implementation for box_map and box_color Tetris_Game_Vector_Based.sh : Vector-based implementation for box_map and box_color program : Either Tetris_Game.sh or Tetris_Game_Vector_Based.sh runlevel : Complexity of the pieces ( Default value is 31 ) previewlevel : Number of the pieces to be previewed ( Default value is 6 ) speedlevel : Speed of the current piece's descent ( Default value is 0 ) width : Width of the game area ( Default value is 25 ) height : Height of the game area ( Default value is 30 ) Usage : bash program [ <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 Platform : redhat-based distros(CentOS|rhel|Fedora) Version : Bash Shell must be 4.0 or above