MLBB Winrate Calculator Library for Android
Add below codes to your root build.gradle
file (not your module build.gradle file).
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
And add a dependency code to your module's build.gradle
file.
dependencies {
implementation 'com.github.sudoxE7:MLBBWinRateCalculator:master-SNAPSHOT'
}
Add in your Activity file.
int totalMatches = 70;
double winRatePercentage = 70.0;
double targetWinRate = 90.0;
new MLBBWinRateCalculator(totalMatches, winRatePercentage, targetWinRate)
.calculateWinRate(new MLBBWinRateCalculatorListener() {
@Override
public void onWinRateCalculated(String result) {
((TextView) findViewById(R.id.textview1)).setText(result);
}
});
// Credit to Exodus