Go module milthm.dev/reality/v3 for computing reality scores based on song records.
- Compute individual record ratings from song difficulty and player score.
- Aggregate up to 20 top ratings into a single reality score.
go get milthm.dev/reality/v3import (
"fmt""milthm.dev/reality/v2"
)
funcmain() {
// Implement ScoreRecorder and ChartInformationRepository interfacestotal, err:=reality.CalculateReality(scores, repo)
iferr!=nil {
fmt.Println("Error:", err)
return
}
fmt.Println("Total reality:", total)
}