Files
SkinsPins/app
Rolf c298c473f4 Fix 9-hole course handicap formula to use HI÷2 per WHS spec
Dedicated 9-hole courses have 9-hole ratings and pars, so the WHS
formula is: round((HI÷2) × (slope/113) + (rating − par)).
The previous code used the full HI, giving roughly double the correct
result (e.g. 22 instead of 11 on Augwil White Male for HI 18).

The three cases are now handled correctly:
- Dedicated 9-hole course: HI÷2 with 9-hole ratings
- 9 holes on 18-hole course: full HI with 18-hole ratings, result halved
- Full 18 holes: full HI with 18-hole ratings

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 21:51:49 +01:00
..
2026-03-20 10:16:46 +01:00
2026-03-20 10:16:46 +01:00
2026-03-20 10:16:46 +01:00
2026-03-20 10:16:46 +01:00