Commit Graph

3 Commits

Author SHA1 Message Date
ahmernajar
c851057d59 Refactor code structure and implement Conjured items support
Refactoring improvements:
- Extract complex nested if-else logic into well-named private methods
- Separate concerns: each item type has its own update method
- Use constants for item names and quality limits
- Add comprehensive docstrings for all methods
- Improve code readability and maintainability

Conjured items implementation:
- Conjured items degrade in quality twice as fast as normal items
- After sell-by date, Conjured items degrade 4x faster (2x normal rate * 2x after sell-by)
- Quality never goes below 0
- Uses prefix matching for flexibility ('Conjured' prefix)

All tests pass, including the new Conjured items tests.
2025-12-06 12:47:04 +00:00
Radek Simko
4a7ffc291e Remove extra whitespaces 2015-06-27 08:08:50 +01:00
emilybache
567c27854a Removed all the code except for the GildedRose kata from this repo 2013-06-10 14:42:41 +02:00