1nj / cpp Goto Github PK
View Code? Open in Web Editor NEWThis project forked from yongye/cpp
Tetris Game // Generalized Tetris in C++11
This project forked from yongye/cpp
Tetris Game // Generalized Tetris in C++11
Tetris Game // All the features except pause and resume are available now ========================================================================= ##################################################################### # # # 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]> # # # ##################################################################### Detailed game Screenshots and the core Algorithm were offered by the one developed in Shell Compile the source code : Run make Or g++ -m64 -std=c++11 -s -Wall -O3 -l pthread -o Tetris_Game Tetris_Game.cpp Or clang++ -m64 -std=c++11 -s -Wall -O3 -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 20 (Heisenbug) [root@node ~]# uname -a Linux node 3.13.6-200.fc20.x86_64 #1 SMP Fri Mar 7 17:02:28 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux [root@node c]# gcc --version | grep gcc gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.