Skip to content

Claude/fix dictionary init bwjip#14

Open
elazmo wants to merge 5 commits intoMugilanGN:masterfrom
elazmo:claude/fix-dictionary-init-Bwjip
Open

Claude/fix dictionary init bwjip#14
elazmo wants to merge 5 commits intoMugilanGN:masterfrom
elazmo:claude/fix-dictionary-init-Bwjip

Conversation

@elazmo
Copy link
Copy Markdown

@elazmo elazmo commented Mar 23, 2026

No description provided.

elazmo and others added 5 commits May 5, 2024 00:49
- Main loop runs until user presses Enter
- Validates adult (>=1) and children (>=0) inputs, rejecting floats and text
- Optimises ticket combinations using Family Pass A (2A+2C=$16) and B (1A+3C=$16)
- Prints itemised receipt with cheapest price

https://claude.ai/code/session_01QF3kbkAxMEveM1Qy1NbRq9
- Extract named constants for prices and pass capacities
- Deduplicate error message into ERR_INVALID_INT constant
- Replace duplicated validation while-loops with get_validated_input helper
- Break inner loop early when rem_children < 0 (avoids pointless iterations)
- Consolidate receipt-line construction into a single list comprehension

https://claude.ai/code/session_01QF3kbkAxMEveM1Qy1NbRq9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants