Code Monkey home page Code Monkey logo

diplomacy-league's Introduction

diplomacy-league

This repository contains code for scraping diplomacy game data from www.backstabr.com and generating an interactive dashboard to track league rankings and stats.

Workflow

  • Scrape JSON game state data from the website.
  • Parse the JSON into SQLite tables.
  • Perform additional transformations on the data.
  • Generate the dashboard.

Data

JSON data

DB tables

League tables

  • players
  • player name
  • account name

Game tables

  • games

    • game.id
    • game.data
  • game.players

    • game.id
    • player.id
    • country
    • winner

diplomacy-league's People

Contributors

andrewcstewart avatar

Watchers

 avatar  avatar

Forkers

arlm

diplomacy-league's Issues

new table: game turn summary

Add a convenience table that aggregates events and metrics per turn, including territories, units, number of attacks, etc

It might be best to group this by player turns, though the fixed player count (7) does make it possible to create a completely flat table.

New table: game moves

It'd be useful to add a table based on orders that joins player id's, and possibly add retreats, as well as deriving any additional information about movements.

(Alternatively), some additional summary tables could be created for specific actions such as attacks, which could include information on attack strength, units involved, allies involved, convoys, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.