Skip to content

ldc405/cpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 

Repository files navigation

Tetris Game // All the features except pause and resume are available now 
=========================================================================

#####################################################################
#                                                                   #
# License: Boost Ver 1.0+                                           #
# Project: https://github.com/yongye/go                             #
# Project: https://github.com/yongye/cpp                            #
# Project: https://github.com/yongye/shell                          #
# Author : YongYe <complex.invoke@gmail.com>                        #
#                                                                   #
#####################################################################

Detailed game Screenshots and the core Algorithm were offered by the one developed in Shell

Compile the source code :
   g++ -std=c++11 -s -l pthread -o Tetris_Game Tetris_Game.cpp

Run the game :
   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        :  ./Tetris_Game [runlevel] [previewlevel] [speedlevel] [width] [height]
   Range        :  [ 0 <= runlevel <= 31 ]   [ previewlevel >= 1 ]   [ speedlevel <= 8 ]   [ width >= 17 ]   [ height >= 10 ]
   Notice       :  runlevel previewlevel speedlevel width height belong to integer

Tested Platform : 
   [root@node ~]# cat /etc/redhat-release 
   Fedora release 19 (Schr?dinger¡¯s Cat)
   [root@node ~]# uname -a
   Linux node 3.10.5-201.fc19.x86_64 #1 SMP Wed Aug 7 16:25:24 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
   [root@node ~]# g++ --version | grep g++
   g++ (GCC) 4.8.1 20130603 (Red Hat 4.8.1-1)

About

Tetris Game // Generalized Tetris

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published