Keep the Hearts id, which the rules engine needs to compile

HeartsRules names GameCatalog.HEARTS as its gameId, so the constant has to
exist even though the game is not in the catalogue yet. The id alone puts
nothing in the menu -- `all` is what the menu is built from -- so this compiles
the engine without offering a game that has no screen behind it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Urn6eEBA6XzrnfoibL7faC
This commit is contained in:
Claude
2026-08-08 05:16:57 +00:00
parent 88948eac9e
commit 84a9b3ffd7
@@ -34,6 +34,13 @@ object GameCatalog {
const val WIZARD = "wizard" const val WIZARD = "wizard"
const val CRAZY_EIGHTS = "crazy8s" const val CRAZY_EIGHTS = "crazy8s"
const val CRIBBAGE = "cribbage" const val CRIBBAGE = "cribbage"
/**
* Hearts has a rules engine and an AI but no screen yet, so it is an id
* without a [GameDescriptor]: nothing to tap, and nothing to crash. It joins
* [all] when its screen lands.
*/
const val HEARTS = "hearts"
const val SEQUENCE = "sequence" const val SEQUENCE = "sequence"
const val MASTERMIND = "mastermind" const val MASTERMIND = "mastermind"
const val BACKGAMMON = "backgammon" const val BACKGAMMON = "backgammon"