rename UK Lotto to Lotto to match the website.

patch  bump
This commit is contained in:
2026-02-22 23:34:10 +00:00
parent 56028b2c52
commit 8b743abcfb
3 changed files with 8 additions and 8 deletions

View File

@@ -45,18 +45,18 @@ class Lottery(ABC):
@register_lottery
class UKLotto(Lottery):
"""A class representing the UK Lotto lottery.
class Lotto(Lottery):
"""A class representing the Lotto lottery.
UK Lotto draws 6 numbers from a pool of 1 to 59, without replacement.
There is no bonus number in UK Lotto.
Lotto draws 6 numbers from a pool of 1 to 59, without replacement.
There is no bonus number in Lotto.
"""
POSSIBLE_NUMBERS = range(1, 60)
def draw(self) -> Result:
"""Perform a UK Lotto draw."""
result = random.sample(UKLotto.POSSIBLE_NUMBERS, 6)
"""Perform a Lotto draw."""
result = random.sample(Lotto.POSSIBLE_NUMBERS, 6)
return Result(kind=type(self).__name__, numbers=result, bonus=None)

View File

@@ -19,7 +19,7 @@ class LotteryTUI(App):
Static('Pick a lottery to play:', id='instructions'),
Select(
options=[
('UK Lotto', 'uklotto'),
('Lotto', 'lotto'),
('EuroMillions', 'euromillions'),
('Set For Life', 'setforlife'),
('Thunderball', 'thunderball'),