Skip to content

Commit 047ff23

Browse files
author
Kirsi Rinnesalo
committed
bug(BUG-003): add clock start pile bug
1 parent d94b784 commit 047ff23

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# BUG-003: Clock start pile
2+
3+
Clock can be started from any pile, but it should only start from the center pile.
4+
5+
## Summary
6+
7+
The Clock game currently allows the first move to begin from any pile, which
8+
breaks the rules and makes the game trivial to start incorrectly.
9+
10+
This bug needs to enforce that the first card reveal must come from the center
11+
pile. Only after the center pile has started should the normal click flow apply.
12+
13+
## Acceptance Criteria
14+
15+
- [ ] The first click must be the center pile
16+
- [ ] Clicking a non-center pile before the game starts does nothing
17+
- [ ] After the center pile starts, normal clicking rules apply
18+
- [ ] Tests written and passing (TDD)
19+
- [ ] No TypeScript errors
20+
- [ ] No console warnings
21+
22+
## References
23+
24+
**Related Tasks:**
25+
- None
26+
27+
**Related ADRs:**
28+
- None
29+
30+
**External:**
31+
- None
32+
33+
## Notes
34+
35+
Focus on rule enforcement and UI behavior; avoid changes to unrelated logic.

agents/tasks/backlog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ _(None)_
4848
## Bugs
4949

5050
- [BUG-001](BUG-001-cardback-persistence.md) - Fix cardBack localStorage persistence using ADR-006
51+
- [BUG-003](BUG-003-clock-start-pile.md) - Clock should only start from center pile
5152

5253

0 commit comments

Comments
 (0)