This project consists in a videoludic adaptation of the board game The Settlers of Catan. In french language, it follows the rules of the original board game. Each player takes turns on the same computer.
Developed in C, using the SDL2 library, it is incorporated within the framework of our studies in the Electronics and Computer Engineering department, at the INSA Rennes engineering school, France.
These instructions will get you a copy of the project up and running on your local machine for running and testing purposes.
What things you need to install the software and how to install them
- Linux - Type this command in a terminal:
sudo apt-get install libcmocka-dev
- Windows - Download the adequate zip archive cmocka-1.1.0-mingw.zip, at the address https://cmocka.org/files/1.1/. Then follow the installation instructions.
- Linux - Type this command in a terminal:
sudo apt-get install libsdl2-dev
- Windows - Download the adequate zip archive, Development Libraries category, at the address https://www.libsdl.org/download-2.0.php. Then follow the installation instructions.
- Linux - Type this command in a terminal:
sudo apt-get install libsdl2-ttf-dev
- Windows - Download the adequate zip archive, Development Libraries category, at the address https://www.libsdl.org/projects/SDL_ttf/. Then follow the installation instructions.
- Linux - Type this command in a terminal:
sudo apt-get install cmake
- Windows - Download the adequate zip archive, à l'adresse https://cmake.org/download/. Then follow the installation instructions.
A step by step series of examples that tell you how to get the executable files
In the project root directory, generate the Makefile
cmake .
Then build the binaries in the /bin
directory (not the OS one but relating to the project root)
make all
Now you have two binaries in the /bin
directory : catane_tests for testing purposes, and catane for running purposes.
To run the model tests, in the /bin
directory, run the catane_tests executable.
/modele
: the headers and sources files relating to the model part of the project/vue
: the headers and sources files relating to the view part of the project/controleur
: the headers and sources files relating to the controller part of the project/images
: the images necesary for the project/fonts
: the fonts necesary for the project/tests
: the headers and sources files relating to the tests of the model part of the project/cmake
: the CMake script to find the SDL2-ttf library/documents
: the documents used for the project management
- Code::Blocks - The IDE used
- CMake - Build system
- SDL - Graphical library used
- CMocka - Test library used
- Valgrind - For detecting memory leaks
- GitLab - Our original repository
- Emmanuel Durel
- Rémi Fargeon
- Titouan Gaborit
- Pauline Manauthon
This project is licensed under the BSD 2-Clause License, available in the LICENSE file.