Git Product home page Git Product logo

melvor-coupon-solver's Introduction

Melvor Idle Coupon Solver

This script calculates how many times you need to clear a dungeon to get all desired items at least once.
It can be launched with or without command line arguments.

Arguments:

-p, --probability-base - The denominator (bottom number) of the drop chance. On the wiki, the chance is shown as a fraction and as a percentage. The bottom number of the fraction is what needs to be entered here. Take the largest common denominator.

-d, --desired-items - The nominators (top numbers) of the drop chances for the desired items. For instance, the chances can be 1/17 and 3/34. You need to bring everything to common demoninator, which will be 2/34 and 3/34. In this example, 2 3 is what this argument should be.

-n, --number-of-trials - Number of complete item sets to acquire. Default is 10000. The larger it is, the more precise the result will be, but also the longer it will take for the program to run.

Overall, the program gets the data about the desired items with -p and -d, and then acquires them -n times to get the final array on which the statistics are done.

Examples of launches:

python coupon-solver.py
python coupon-solver.py -n 100000
python coupon-solver.py -d 3 3 2 2 -p 723

Initial draft by me. Testing and wrapping by Benjamin#5349.

melvor-coupon-solver's People

Contributors

have-fun-was-taken avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.