sudo apt-get install libsfml-dev # install the SFML lib.
git clone https://github.com/jsyqrt/games.git
cd games
cd 01\ Tetris/ # compile the first game as an example.
g++ -std=c++11 -c main.cpp # to compile.
g++ main.o -o main.exe -lsfml-graphics -lsfml-window -lsfml-system # to link.