Skip to content

The Resistance: Avalon game data tracking and plotting script

License

Notifications You must be signed in to change notification settings

mwiens91/avalon-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avalon Tracker

This is a simple (?) script that produces various win/losses and win% plots from The Resistance: Avalon game history data.

Game history data

Game history data should follow the format shown in the data text file. For convenience, I've been pushing results for my group's Avalon games to this repository, but you can overwrite these results with your own.

Setup

Installing required R packages

In an R enviroment run

install.packages(
  "plyr",
  "dplyr",
  "ggplot2",
  "reshape2",
  "scales",
  "yaml"
)

Setting up the configuration file

Create a configuration from the example configuration file with

cp config.yaml.example config.yaml

and edit the file as appropriate to enable/disable the plots you want to generate. If you're running from a shell, you most likely want the sleep_at_end_of_execution set to true so the plots persist after executing the script; in an environment such as RStudio, just keep that setting as false.

Running the script

To run the script in a shell, do

./script.r

About

The Resistance: Avalon game data tracking and plotting script

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages