hungarofit / evaluator
Hungarofit evaluator logic library for PHP
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:Go
Requires (Dev)
- monger/spreadsheet-reader: ^1.0
- phpunit/phpunit: ^5.7
README
Hungarofit evaluation logic library for Go
Generating tables from XLSX files
# cwd: project root
go run cmd/tables_generate/main.go
Usage
go get -u github.com/hungarofit/evaluator@master
import "github.com/hungarofit/evaluator" func main() { score, err := evaluator.Evaluate(evaluator.ChallengeHungarofitMini, evaluator.GenderFemale, 20, map[evaluator.Exercise]evaluator.ResultValue{ evaluator.ExerciseAerob_Run12Min: 3000.0, evaluator.ExerciseMotor4_Jump: 20.0, evaluator.ExerciseMotor4_Pushup: 20.0, evaluator.ExerciseMotor4_Situp: 50.0, evaluator.ExerciseMotor4_Torso: 70.0, }) if err != nil { log.Fatalln(err) } log.Println(score.Total) }
2014 © Dr. Ildikó Dr. Fehérné Mérey