code wiki / _hdl_build / _pv_score.nx

_pv_score.nx source

↩ module page · 9 lines · 335 B

1// AUTHORED BY THE NISHI BUILDER (pattern: PERMIL_VERDICT) -- baked band ladder, no Claude logic 2func _pv_score_verdict(count: i64) -> i64 { 3 if count < 0 { return 0 - 1 } 4 let permil: i64 = count * 1000 / 14 5 if permil >= 1000 { return 2 } 6 if permil >= 500 { return 1 } 7 if permil >= 0 { return 0 } 8 return 0 - 1 9}