Coder Social home page Coder Social logo

wows-ranked's Introduction

Description:

This project estimates the number of battles needed to get to rank 1 in World of Warships.

Example Usage:

python wows-ranked.py -f 0.15 -m 3000 -s 20000 -o ./output

This will run the program with the following settings:

  • a first place rate of 0.15 (15% chance of getting first place in a battle),
  • a maximum of 3,000 battles per simulation (to prevent infinite loops),
  • 20,000 simulation runs for each win rate.
  • each win rate from 0.48 to 1.0 will be simulated separately (48% to 100% chance of winning a battle),
  • One plot for each win rate, and the summary plot, will be saved to a folder called "./output"

Adding a --sprint flag will simulate a ranked sprint season instead of the regular ranked season.

Run python wows-ranked.py -h for the full help menu.

Example Output:

The program will save a histogram for each win rate simulated. It will also save a summary plot of win rate vs median battles.

Regular Season:

python wows-ranked.py -f 0.15 -m 3000 -s 20000 -o ./example-regular-season

Example Summary Plot:

Example summary plot

Example Histogram:

Example histogram

Sprint Season

python wows-ranked.py -f 0.15 -m 3000 -s 20000 --sprint -o ./example-sprint-season

Example Summary Plot:

Example summary plot

Requirements:

The project uses Python 3.8 and matplotlib. See requirements.txt for details.

Credits:

Original version by player Terror_Tost from the EU server.

wows-ranked's People

Contributors

jcorvino avatar

Stargazers

 avatar

Watchers

 avatar

wows-ranked's Issues

Update README.md

Latest commit changed how code works, but README.md was not update.

Add RNG seed

Add the ability for users to specify a RNG seed. This will allow for exact reproduction of graphs / simulations.

Add confidence intervals

Add 95% confidence intervals to the summary plot. Consider using the arch package and the BCa method to estimate confidence intervals of skewed distributions (note most of our distributions have a very high positive skew).

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.