Skip to content

Instantly share code, notes, and snippets.

@bonetechnologies
Created May 9, 2015 16:26
Show Gist options
  • Save bonetechnologies/4b767b81b25640ab10bf to your computer and use it in GitHub Desktop.
Save bonetechnologies/4b767b81b25640ab10bf to your computer and use it in GitHub Desktop.
public static int getLevel(int experience) {
double constant = 0.032;
double v = constant * sqrt(experience);
return (int) Math.floor(v);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment