What problem does it solve?
This Skill encapsulates the domain layer of the Loto Generator, providing a pure Kotlin core that models business rules, entities, and use cases, while remaining UI- and Android-free to ensure portability and testability.
Core Features & Use Cases
- Domain modelling: define core entities and invariants for lottery concepts (tickets, draws, results).
- Use case orchestration: coordinate multiple entities and repositories to perform domain actions such as ticket validation, outcome calculation, and rule enforcement.
- Clear boundaries and testability: provide repository interfaces and sealed result types to decouple UI and data layers and enable thorough unit testing.
- Rule configuration: maintain constants and configuration that encode business rules (thresholds, validation rules, and validation workflows).
Quick Start
Define a new domain use case for validating lottery tickets and run its unit tests.