ocl

package module
v0.0.0-...-ba6c1b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2019 License: MIT Imports: 1 Imported by: 56

README

ocl GoDoc Go Report Card

Documentation

Overview

Package ocl allows you to do calculation of osu! levels in Go.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLevel

func GetLevel(score int64) int

GetLevel calculates what's the level of a score.

Example
fmt.Println(GetLevel(26274008441))
Output:

99

func GetLevelPrecise

func GetLevelPrecise(score int64) float64

GetLevelPrecise gets a precise level, meaning that decimal digits are included. There isn't any maximum level.

func GetLevelWithMax

func GetLevelWithMax(score int64, _ int) int

GetLevelWithMax calculates what's the level of a score, having a maximum level. Deprecated, use GetLevel.

func GetRequiredScoreForLevel

func GetRequiredScoreForLevel(level int) int64

GetRequiredScoreForLevel retrieves the score required to reach a certain level.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL