|
|
e0417f0b62
|
GREEN: Fix custom delimiter bug
- Uncommented delimiter extraction line
- Now properly extracts custom delimiter from format '//[delimiter]\n'
- Tests pass: '//;\n1;2' returns 3, '//|\n10|20|30' returns 60
|
2026-02-18 12:58:09 +07:00 |
|
|
|
073afc0ab6
|
fix: Introduce real custom delimiter bug
- Comment out delimiter extraction line
- Custom delimiter now never gets extracted
- Will fail when testing '//;\n1;2'
|
2026-02-18 12:57:49 +07:00 |
|
|
|
0a6da5a651
|
GREEN: Fix summation loop bug
- Changed loop condition from 'i < length - 1' to 'i < length'
- Now includes last element in sum
- Tests pass: '1,2' returns 3, '1,2,3' returns 6
|
2026-02-18 12:57:05 +07:00 |
|
|
|
77d48e790a
|
GREEN: Fix single number parsing bug
- Removed +1 off-by-one error from single number parsing
- Now correctly returns the parsed number
- Tests pass: '5' returns 5, '42' returns 42
|
2026-02-18 12:56:40 +07:00 |
|
|
|
164adf815d
|
GREEN: Fix empty string bug
- Changed return value from 1 to 0 for empty string
- Test now passes: empty string returns 0
|
2026-02-18 12:56:17 +07:00 |
|
|
|
279c381872
|
feat: Add buggy String Calculator implementation
- Implements basic string calculator with 5 intentional bugs
- Bug 1: Empty string returns 1 instead of 0
- Bug 2: Single number has off-by-one error
- Bug 3: Summation loop misses last element
- Bug 4: Newline delimiter not properly handled
- Bug 5: Custom delimiter parsing broken
- Ready for Bug Hunt Kata with TDD approach
|
2026-02-18 12:55:51 +07:00 |
|
|
|
4d436517e7
|
GREEN: implement conjured items degrading twice as fast
|
2026-02-18 12:42:42 +07:00 |
|
|
|
c2994ce63c
|
REFACTOR: extract helper methods and domain constants
|
2026-02-18 12:39:31 +07:00 |
|
|
|
7a17790915
|
REFACTOR: introduce strategy pattern for item types
|
2026-02-18 12:37:13 +07:00 |
|
|
|
5655326543
|
REFACTOR: extract item type methods from nested conditionals
|
2026-02-18 12:35:02 +07:00 |
|
|
|
7f05229104
|
GREEN: add characterization tests for legacy Gilded Rose code
|
2026-02-18 12:06:26 +07:00 |
|
|
|
a93a6abb28
|
REFACTOR: break down the logic into dedicated methods, tests cleaned up
|
2026-02-10 12:43:42 +07:00 |
|
|
|
8474b20e85
|
GREEN: calculate strike
|
2026-02-10 12:34:55 +07:00 |
|
|
|
7c24567bfa
|
REFACTOR: extract spare checking logic
|
2026-02-10 11:55:31 +07:00 |
|
|
|
b6007c8115
|
GREEN: store rolls in a list and check for spare
|
2026-02-10 11:52:49 +07:00 |
|
|
|
b4cdd039ae
|
GREEN: save score state and add knocked pins on each roll
|
2026-02-10 11:24:12 +07:00 |
|
|
|
9a22a3e5fe
|
GREEN: score() returns hardcoded 0
|
2026-02-10 11:21:13 +07:00 |
|
|
|
1f31a68df5
|
RED: test gutter game
|
2026-02-10 11:19:34 +07:00 |
|
|
|
6e75926f79
|
REFACTOR: split validation into value object
|
2026-02-10 09:38:58 +07:00 |
|
|
|
438221e2d7
|
GREEN: implement roman numerals contraints
|
2026-02-10 09:34:43 +07:00 |
|
|
|
5bf2839e33
|
GREEN: add conversion rules for 400. 500. 900, and 1000
|
2026-02-10 09:25:07 +07:00 |
|
|
|
1b0336edeb
|
GREEN: add convertion rules for 90 and 100
|
2026-02-10 09:21:10 +07:00 |
|
|
|
dc6728bea5
|
GREEN: add conversion rule for 50
|
2026-02-10 09:18:47 +07:00 |
|
|
|
bef6a56d06
|
GREEN: add coversion rule for 40
|
2026-02-10 09:16:38 +07:00 |
|
|
|
b12821147d
|
REFACTOR: apply DRY, remove magic numbers, add conversionRules domain
|
2026-02-10 09:12:34 +07:00 |
|
|
|
7eed3f8e2a
|
GREEN: add roman symbol for 10
|
2026-02-10 08:50:50 +07:00 |
|
|
|
da8f7bbfb1
|
GREEN: add roman symbol for 9
|
2026-02-10 08:49:39 +07:00 |
|
|
|
f6d75f15e1
|
GREEN: add roman symbol for 8
|
2026-02-10 08:45:51 +07:00 |
|
|
|
6ad0556fcf
|
GREEN: add roman symbol for 7
|
2026-02-10 08:44:18 +07:00 |
|
|
|
445ba862ee
|
GREEN: add roman symbol for 6
|
2026-02-10 08:43:00 +07:00 |
|
|
|
c1a5ed7ed7
|
REFACTOR: extract logic and remove loop
|
2026-02-10 08:39:34 +07:00 |
|
|
|
5c9962eb61
|
GREEN: return hardcoded "IV" for 4
|
2026-02-10 08:22:39 +07:00 |
|
|
|
1cfd2199ee
|
GREEN: return hardcoded "V" for 5
|
2026-02-10 08:19:23 +07:00 |
|
|
|
ba924edde7
|
GREEN: add simple logic to handle 1-3
|
2026-02-10 08:14:06 +07:00 |
|
|
|
48b8967e0f
|
GREEN: return hardcoded "II" for 2
|
2026-02-10 08:11:12 +07:00 |
|
|
|
0faa1de47c
|
GREEN: return hardcoded "I" for 1
|
2026-02-10 08:08:35 +07:00 |
|
|
|
15f6698a94
|
initial commit
|
2026-02-10 08:03:09 +07:00 |
|