mirror of
https://github.com/onyx-and-iris/lottery-tui.git
synced 2026-02-26 11:09:11 +00:00
rename UK Lotto to Lotto to match the website.
patch bump
This commit is contained in:
parent
56028b2c52
commit
8b743abcfb
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "lottery-tui"
|
||||
version = "0.2.5"
|
||||
version = "0.2.6"
|
||||
description = "A terminal user interface for lottery games."
|
||||
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]
|
||||
dependencies = ["textual>=8.0.0", "loguru>=0.7.3"]
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
|
||||
@ -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'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user