• Log in or sign up for an account here: https://www.sythe.org/login

Boxing hit calculator

Pikachu

Legend
Global ModeratorA Broken Man Donor
Joined
Jan 27, 2016
Sythe Gold
39,500
Messages
89,498
Boxing hit calculator
This is an open source boxing calculator, it will only calculate max hits for boxing and nothing else.

It's made in java.

Plan on adding more to it like whips etc,

Don't ask why I used all if and else statement, I didn't think of getting maths for strength max hit, did for rest.

package javaapplication3;
import java.util.Scanner;
public class JavaApplication3 {
public static void main(String[] args) {
double Atkboost, strboost, maxhit, strenght;
Scanner kb = new Scanner(System.in);
System.out.println("What is your combat style? Accurate = 1 , Kick = 2 , defensive = 3");
int Hey = kb.nextInt();
if (Hey == 2) {
//for kick
System.out.println("What is your strenght level?");
int str = kb.nextInt();
if (str <= 23) {
System.out.println("Your max hit is 3");
} else if (str <= 33) {
System.out.println("Your max hit is 4");
} else if (str <= 43) {
System.out.println("Your max hit is 5");
} else if (str <= 53) {
System.out.println("Your max hit is 6");
} else if (str <= 63) {
System.out.println("Your max hit is 7");
} else if (str <= 73) {
System.out.println("Your max hit is 8");
} else if (str <= 83) {
System.out.println("Your max hit is 9");
} else if (str <= 93) {
System.out.println("Your max hit is 10");
} else if (str <= 99) {
System.out.println("Your max hit is 11?");
} else if (str <= 100) {
System.out.println("this doesn't work");
}
//claculates for accurate
} else if (Hey == 1) {
System.out.println("What is your strenght level?");
int stre = kb.nextInt();
if (stre <= 27) {
System.out.println("Your max hit is 3");
} else if (stre > 28)
{
int level;
level = 10;
double hit = stre*0.1+1.3;
System.out.println(hit);
}
//clacs the defence
} else if (Hey == 3) {
System.out.println("What is your strenght level?");
int stre = kb.nextInt();
if (stre <= 27) {
System.out.println("Your max hit is 3");
} else if (stre > 28)
{
int level;
level = 10;
double hit = stre*0.1+1.3;
System.out.println(hit);
}
}
}
}

package javaapplication3;
import java.util.Scanner;
public class JavaApplication3 {
public static void main(String[] args) {
double Atkboost, strboost, maxhit, strenght;
Scanner kb = new Scanner(System.in);
System.out.println("What is your combat style? Accurate = 1 , Kick = 2 , defensive = 3");
int Hey = kb.nextInt();

if (Hey == 3) {
System.out.println("What is your strenght level?");
int stre = kb.nextInt();
double hit = stre*0.1+1.3;
System.out.println(hit);

} else if (Hey == 2) {
System.out.println("What is your strenght level?");
int stre = kb.nextInt();
double hit = stre*0.1+1.6;
System.out.println(hit);

} else if (Hey == 1) {
System.out.println("What is your strenght level?");
int stre = kb.nextInt();
double hit = stre*0.1+1.3;
System.out.println(hit);
}
}
 
Last edited:
Boxing hit calculator
Pretty complicated for such a simple formula :p It's just floor((str+16)/10) for aggressive mode and floor((str+13)/10) for accurate/defensive mode.
 
Boxing hit calculator
Pretty complicated for such a simple formula :p It's just floor((str+16)/10) for aggressive mode and floor((str+13)/10) for accurate/defensive mode.
Not really If I didn't do add the if else statement and just did the formula it be alot more basic =p
 
Runescape Gamblingrunescape gambling
Back
Top