05/23 Add Pick 5, Millionair Balls, etc

This commit is contained in:
2026-05-23 17:04:40 -04:00
parent b5e03fbf10
commit c792d9878e
10 changed files with 302 additions and 50 deletions
+6 -3
View File
@@ -124,9 +124,12 @@ def _seed_games(cursor, conn):
Uses INSERT OR IGNORE to be idempotent on every launch.
"""
defaults = [
# name main_count main_max bonus_count bonus_max active
("Powerball", 5, 69, 1, 26, 1),
("Mega Millions", 5, 70, 1, 25, 1),
# name main_count main_max bonus_count bonus_max active
("Powerball", 5, 69, 1, 26, 1),
("Mega Millions", 5, 70, 1, 25, 1),
("Cash 5", 5, 45, 0, 0, 1),
("Millionaire for Life", 5, 58, 1, 5, 1),
("Bank a Million", 6, 40, 1, 40, 1),
]
for row in defaults:
+1 -1
View File
@@ -19,7 +19,7 @@ logger = logging.getLogger(__name__)
# GAMES
# ══════════════════════════════════════════════════════════════════════════════
_BUILTIN_GAMES = {"Powerball", "Mega Millions"}
_BUILTIN_GAMES = {"Powerball", "Mega Millions", "Cash 5", "Millionaire for Life", "Bank a Million"}
def add_game(name: str, main_count: int, main_max: int,