Skip to content

Videoludic adaptation of the boardgame The Settlers of Catan, written in C and using SDL2 library

License

Notifications You must be signed in to change notification settings

tgaborit/C-atan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Settlers of Catan

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.

screenshot

Getting Started

These instructions will get you a copy of the project up and running on your local machine for running and testing purposes.

Prerequisites

What things you need to install the software and how to install them

CMocka library
  • 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.
SDL2 library
  • Linux - Type this command in a terminal:
sudo apt-get install libsdl2-dev
SDL2-ttf library
  • Linux - Type this command in a terminal:
sudo apt-get install libsdl2-ttf-dev
CMake build system
  • Linux - Type this command in a terminal:
sudo apt-get install cmake

Building

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.

Running the tests

To run the model tests, in the /bin directory, run the catane_tests executable.

Tree view

  • /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

Built With

Authors

  • Emmanuel Durel
  • Rémi Fargeon
  • Titouan Gaborit
  • Pauline Manauthon

License

This project is licensed under the BSD 2-Clause License, available in the LICENSE file.

About

Videoludic adaptation of the boardgame The Settlers of Catan, written in C and using SDL2 library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published