- 313 new markdown files created - 30 relationships embedded - 313 entries indexed - State initialized with usage data
991 B
991 B
| id | type | title | tags | importance | confidence | created | updated | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| b66c4793-0e3c-489d-b15f-9bd2f6bf0619 | solution | Fix: pitcher error ratings silently failed due to unpacked range() in list membership |
|
0.8 | 0.8 | 2026-02-11T21:33:55.648267+00:00 | 2026-02-11T21:33:55.648267+00:00 |
In dice.py sa_fielding_roll(), pitcher (P position) error checks used range() objects directly in list membership checks (e.g. [6, 13, range(30, 35)]) instead of unpacking with * (e.g. [6, *range(30, 35)]). Python's 'in' operator checks if the range object itself is a list item, not its contents, so 51 in [range(38, 52)] returns False. Fixed 9 lines (2662-2717). Also fixed 2 range boundary mismatches: dice 12 had range(15,19) instead of range(15,20) and range(22,51) instead of range(22,52); dice 6 had range(42,52) instead of range(43,52). The correctly-coded lines (2629-2657) used *range() and served as the reference for the fix.