A scorekeeping program for the board game Carcassonne

George C. Privon d86cb8bf04 update missing changelog info пре 6 година
analysis 46210f6df1 fix color cyclers in demo scripts пре 7 година
utilities b1642ffdf5 new utilities directory. script to merge multiple gameIDs into a single gameID пре 7 година
.gitignore fc1b9656aa start extracting parameters to a configuration file пре 7 година
CHANGELOG.md d86cb8bf04 update missing changelog info пре 6 година
CarcassonneScore.conf.example 39c3ce1a85 config file option for printing tiles/time info in status message пре 7 година
CarcassonneScore.py 238e39fc4f release version 0.4.2 пре 7 година
LICENSE 7f294aa55a GPL3 license пре 8 година
README.md 91ac9048bc add requirements пре 7 година
cgame.py 5263c0cbe0 add sorted score printout, fixes #23 пре 6 година
manage_database.py e9531522d0 Hills & Sheep expansion, fixes #21 пре 7 година
requirements.txt 91ac9048bc add requirements пре 7 година

README.md

Carcassonne Score keeping

Score keeping software for Carcassonne to facilitate statistical analysis of games. Information (players, games, scores, expansions) are stored in a sqlite3 database. The location of this database defaults to CarcassonneScore.db, but can be specified in the CarcassonneScore.conf configuration file.

Requirements

Detailed information in requirements.txt

  • python 3
  • numpy
  • matplotlib (only needed for for analysis scripts)

Usage

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

$ python manage_database.py --init

Score keeping

After a database has been initialized, you can score a game with:

$ python CarcassonneScore.py

This launches the interactive shell which sets up a game (gets the names and order of players, list of active expansions, and other information). Within this shell various commands are available to record scores, advance to a next player's turn, and end the game. Press ? within the shell for a list of commands (note that the list of available commands may change depending on the expansions being played and whether the game is in active tile-placing mode or post-game scoring mode).

Database Maintenance

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

$ python manage_database.py -n NEW PLAYER

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

Analysis

Some jupyter notebooks with sample analysis and a sample sqlite database containing one game are available in the analysis/ directory.

Miscellaneous Utilities

The utilities/ directory contains scripts which may be useful for correcting issues, but these should not be needed for normal operations.