/pandemic-legacy-2

Infection deck predictor for pandemic games

Primary LanguageJava

Pandemic legacy season 2 - Infection deck predictor

Infection deck predictor is a tool to obtain the next cards that will appear in the infection deck, taking into account the cards that already appeared in previous epidemics The tool is used for pandemic legacy season 2, but can be used for any other version on the game

The tool is based on:

  • A google sheets file to keep track of the infected cities in each epidemic
  • A local server which will read from the google sheets file and provide a list and order of cards that will appear

How to run it

  • Clone the project
  • Follow the instructions in https://developers.google.com/sheets/api/quickstart/java and replace the credentials.json file with your own credentials
  • Create a Spreadsheet file with the following format
  • Change the SPREADSHEET_ID to the Id of your spreadsheet file in the Controller
  • Run the application using ./mvnw spring-boot:run
  • Go to http://localhost:8080/predict.html. After that, check the application logs and grant access to the application to get a token to access the google sheet
  • After that, the deck of cards will show up in the browser