View on GitHub

catan-ranker

Leaderboard generator for the Catan board game originally designed by Klaus Teuber.

build and test

Leaderboard generator for the Catan board game originally designed by Klaus Teuber. The leaderboard consists of Markdown files containing tables and plots. See https://github.com/acodcha/catan-leaderboard for an example of a leaderboard that uses this program.

Setup

The following packages are required:

Build the program with:

mkdir build
cd build
cmake ..
make

This builds the build/bin/catan-ranker program.

You can optionally run tests from the build directory with:

make test

You can optionally install the program from the build directory with:

sudo make install

This installs the program to /usr/local/bin/catan-ranker. To uninstall the program, simply delete it.

(Back to Top)

Usage

Run with no arguments or with the --help argument to obtain usage information.

Otherwise, for regular use, run with:

catan-ranker --games <path> --leaderboard <path>

(Back to Top)

Games File

The games file is a plain text file with the following format:

2020-03-15 : 10 : Alice 10 , Bob 8 , Claire 7 , David 5
2020-03-15 : 13 : Alice 13 , Bob 11 , Claire 10
2020-03-17 : 10 : Claire 10 , Bob 9 , Alice 9 , Francis 8 , Edith 8
2020-03-18 : 10 : David 10 , Claire 9 , Alice 8 , Bob 8 , Edith 7 , Francis 6
2020-03-20 : 10 : Claire 10 * , Alice 11 , Bob 7 , David 7 , Edith 5
2020-03-21 : 14 : Bob 14 , Alice 13 , David 11 , Claire 9

(Back to Top)

Documentation

Building the documentation requires additional packages:

Documentation is optional and disabled by default but can be generated from the build directory with:

cmake .. -DBUILD_DOCS=ON
make docs

This generates HTML documentation using Doxygen. The documentation is located in docs/html. Open the docs/html/index.html file in any web browser to view the documentation.

(Back to Top)

License

This work is maintained by Alexandre Coderre-Chabot (https://github.com/acodcha) and licensed under the MIT License. For more details, see the LICENSE file or https://mit-license.org/. This work is based on the Catan board game (also known as Settlers of Catan) originally designed by Klaus Teuber. The contents, copyrights, and trademarks of everything involving Catan are exclusively held by its designers and publishers; I make no claim to any of these in any way.

(Back to Top)