A scorekeeping program for the board game Carcassonne

George C. Privon 533a580260 separate db updates, fix a typo преди 8 години
analysis b43c91bea7 various analysis example updates преди 8 години
.gitignore 0c5683c48b ignore swap files преди 8 години
CHANGELOG.md c032a8a7ac update changelog преди 8 години
CarcassonneScore.py bee7604e0c remove extraneous whitespace преди 8 години
LICENSE 7f294aa55a GPL3 license преди 8 години
README.md 533a580260 separate db updates, fix a typo преди 8 години
cgame.py e40ca0fe14 define a global time format string. this should be abstracted to a config file so the analysis script can access it преди 8 години
create_database.py bee7604e0c remove extraneous whitespace преди 8 години
update_database.py 398deb4a46 make input more flexible and not require quotes for new players преди 8 години

README.md

Carcassonne Score keeping

Score keeping software for Carcassonne to facilitate statistical analysis of games.

Requirements

  • python 3 (tested under python 3.6.x)
  • numpy
  • matplotlib (for analysis scripts)

Usage

Before your first game you will need to initialize the sqlite database:

$ python create_database.py

Score keeping

Assuming the database has been initialized, you can run a game with:

$ python CarcassonneScore.py

This launches the interactive shell. Press ? for a list of commands.

Database Maintenance

To update the database (add new players toggle availability of expansions), use the update_database.py command. For example, to add a new player:

$ python update_database.py -n NEW PLAYER

Use python update_database.py -h to see the full list of options.

Analysis

A sample analysis jupyter notebook and a sample sqlite database containing one game is available in the analysis/ directory.