Giter Site home page Giter Site logo

wesnothstats's Introduction

This project depends on https://github.com/kallaballa/WML2XML to convert WML files to XML, XmlStarlet to query the xml documents and pv. The data/ladder.csv file has been generate from a DB dump of https://wesnoth.gamingladder.info/ with following query:

SELECT * FROM webl_games INTO OUTFILE '/var/lib/mysql-files/ladder.csv' FIELDS TERMINATED BY ';' ENCLOSED BY '"' LINES TERMINATED BY '\n'

Usage

Analysis

Analysis is done in three steps.

  1. Preparing data (and optionally filtering by year)
  2. Downloading replays
  3. Deciding

The 3 steps are performed by 3 separate scripts (WARNING: you have to be in the base directory of the repo):

./1_prepareLimitedByElo.sh <optional elo limit> # generates "prepared.csv"
./2_downloadReplays.sh # downloads the replays files
./3_decide.sh # decide games and generate the final data # generates "errors.txt" and "result.csv"

The final data is stored in "result.csv"

Visualization

Copy "result.csv" to "./wesnothviz/data/games.csv"

cp result.csv ./wesnothviz/data/games.csv

Start a webserver in the wesnothviz directory

cd wesnothviz/
python -m SimpleHTTPServer

View the data in the browser:

xdg-open http://localhost:8000

Example Visualization

Example Visualization

wesnothstats's People

Contributors

kallaballa avatar greg-boggs avatar

Stargazers

 avatar  avatar seclorum avatar

Watchers

 avatar James Cloos avatar Gunter Labes avatar  avatar

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.