A student project about the Tangram game made in C++
When you're in the root directory of this project, follow the next steps :
First, If you have not did it already, you can build the game by executing the following command line :
$ cmake ./cmake-build-debug
Second, If you have not did it already, you can make the executable’s game by executing the following command line :
$ cd cmake-build-debug
$ make
Before using the run command line, you have to use the two aforementionned command in the right order. If you have already did it, you can run the game by executing the following command line :
$ ./tangram
Run the game with the following command line in the cmake-debug-build directory :
$ ./tangram
You can play now.
You can create a new puzzle board if you click on the Launch button and use the
following commands :
mouse click lefton a shape and drag to move it.
mouse click righton a shape and drag to rotate it.
press 'Esc'to exit this mode.
press 's'to save the current board as puzzle.
press 'd'on a shape mouseovered to rotate it 45° anti clockwise.
press 'fon a shape mouseovered to rotate it 45° clockwise.
press 'r'to symmetrically reverse the shape.Note that last command rotates every shape to 180° except parallelogram which is overturned (in a mirror fashion)
If you click on the Load button, you can load a puzzle file and try to resolve it. You can use the
following commands :
mouse click lefton a shape and drag to move it.
mouse click righton a shape and drag to rotate it.
press 'Esc'to exit this mode.
press 'd'on a shape mouseovered to rotate it 45° anti clockwise.
press 'fon a shape mouseovered to rotate it 45° clockwise.
press 'r'to symmetrically reverse the shape.Note that last command rotates every shape to 180° except parallelogram which is overturned (in a mirror fashion)
The game will stop when you put the last shape at the right place. You will return to the main menu. When you solve a puzzle, the last shape dropped will be displayed in white and the game will freeze a for few seconds before you return to the main menu.
Here you can find HTML files, LaTeX files and PDF.
Open with your browser
$ cd doc/html
index.html
$ cd doc/latex
Open with a PDF reader
$ cd doc/latex
refman.pdf
You can generate this document as needed. If you're updating the code and the documentation, you should do execute in the root directory of this project :
$ doxygen config-file
If you want customize the documentation generated, you could also configurate the following file :
$ gedit config-file
To generate the PDF documentation, execute the following commands :
$ cd doc/latex
$ make