grumd / genshin-artifact-farm-calculator Goto Github PK
View Code? Open in Web Editor NEWCalculate your chance to get an artifact in Genshin Impact
Home Page: https://grumd.github.io/genshin-artifact-farm-calculator/
License: MIT License
Calculate your chance to get an artifact in Genshin Impact
Home Page: https://grumd.github.io/genshin-artifact-farm-calculator/
License: MIT License
I am currently writing my own artifact sim with probabilities in preparation for my math and computer science finals and happened to stumble across your project. I checked the files and noticed that you calculate the chance for getting the desired artifact in one run (20 resin) the following way:
chance = 1 - (1- chance) * (1 - 0.07 * chance)
This confused me, as I first calculated the chance manually using chance = chance * 1.07
and got a different result than you, so I ran a simulation to confirm the matter:
I created 100 million random artifacts with a 7% chance to create two at once and logged the amount of Flowers I got: 21400206
This proves that the chance for getting an artifact with chance c in one run (20 resin) with a chance of 7% for double artifacts is indeed chance = chance * 1.07
instead of the formula you used.
This new formula can also be proven the following way:
0.93 * chance + 0.07 * (2*chance*(1-chance)+2*(chance)²)
0.93*chance
)0.07*...
)2 * chance * (1-chance) + 2 * chance²
chance = chance * 1.07
and calculates a probability of 21.4% for the aforementioned example (with chance = 0.2)Probably since the addition of dendro.
To test it, simply use "Flower of life" and run, it should give flat 10% (or 20% for combined).
Elemental goblets display 0.535% (or 1.07%) which are the only correct values, every other % should have been the same except ATK%, DEF%, HP% for goblets.
Minor things:
The UI is written in English but the X-Axis is displayed in local language:
Would it be possible to add custom resin usage per day? In case people use fragile resins/refills or only allocate a lower resin amount per day to artifacts. Hovering gives you the resin value to manually divide but this would be more convenient.
When I'm looking for an artifact to use, my selection process is
Could we get a way to express in your calculator "no defense substats" or similar? That would be really useful for me
Hi, I'm looking into creating an application that utilizes the probabilities of given artifact rolls, and stumbled upon this handy tool. It would be awesome if I were able to reuse some of your logic but I noticed that this repo has no license. Are you interested in allowing for such modification/reuse?
I couldn't find a LICENSE file in here, so I wanted to check: would you have any objection to someone forking and deploying this?
This tool has been very helpful, but there are a couple of additional features I'm missing (mainly around making it easier to share results).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.