Pikachu
Legend


- Joined
- Jan 27, 2016
- Sythe Gold
- 39,506
- Messages
- 89,504
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.
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);
}
}
}
}
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);
}
}
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:

