GithubHelp home page GithubHelp logo

innoviox / fantasy-fencing Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 23.58 MB

like fantasy football but different

Python 97.99% HTML 0.71% CSS 0.47% JavaScript 0.68% PowerShell 0.14% Batchfile 0.01%

fantasy-fencing's Introduction

Repo's(te)

not anything like fantasy football

Running/building

Modules to install: pydantic, selenium, uvicorn, fastapi, beautifulsoup4, requests, sqlalchemy

Run: uvicorn api.api:api --reload

Ideas for data

Left/right handed

Grip (pistol/french)

Ideas for UI

  • Home
  • Table list: data on all fencers, broad, sort by weapon, gender, age, ...
  • User Profile -> Personal Stats (against specific oponents)
  • Coaches view: data on many fencers (locked unless you buy(?))

Structure

Each {tournament}.db file has two tables in it: the fencers who fenced in that tournament, and the matches that were played. Each fencer contains the following statistics from their pool:

  • name: the name of the fencer
  • victories: the number of victories in the pool
  • victories_over_matches: victories divided by total matches
  • touches_scored, touches_received, indicator: indicator = touches_scored - touches_received
  • match_scores: the scores of the individual matches, comma-separated (e.g. "D2,V5,D1,D4...")
  • match_against: the names of the fencers they fenced against, comma-separated

Note that if the tournament contained multiple pools, the statistics for each pool are separated by hyphens. Thus, an indicator value of +13--11 means that the fencer had an indicator of +13 day 1, and -11 day 2.

The matches (games) database contains the list of games. Each game contains the players (p1 and p2) as they were stored in the tableau, the score score with winner first, the round round (e.g. 128, 64, 32...), and the winner winner of the match. NOTE: game.p1 is not necessarily the winner.

The aggregated database will attempt to pull all of the fencers together. This means that the ids in the aggregated database are different than the ids in the individual tournament databases.

The aggregated database will store fencers in the following format:

  • id, name, birthdate, club, country: the values from the csv database
  • ratings: comma-joined ratings in saber, epee, and foil (note that for sqlite3-unpacking purposes ratings is between club and country)
  • tournaments, stats: ::-separated list of tournaments and the statistics for those tournaments (stats are '.' joined
  • matches: the matches played at a given tournament. games in a single tournament are separated by ,, and tournaments are separated by ::. There is no distinction for day 1 or day 2. The match format is: {against}/{score}/{1 if winner else 0}

fantasy-fencing's People

Contributors

innoviox avatar firestar2202 avatar imgbotapp avatar

Stargazers

 avatar  avatar

Watchers

 avatar Lionel De Swarte--Danko (He/him) avatar

Forkers

wadelu

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.