LotteryChecker/powerball/Powerball.py
2022-01-05 20:49:03 -06:00

19 lines
540 B
Python

from lib.Ticket import Ticket
from .Feed import Feed
from .winning_structure import get_winnings_pb, get_winnings_no_pb
class Powerball(Ticket):
def __init__(self, my_picks, my_special_ball):
super().__init__(my_picks, my_special_ball)
self.special_ball_name = 'Powerball'
self.feed = Feed()
self.get_winning_numbers()
def get_winnings_with_special_ball(self, jp):
return get_winnings_pb(self.jackpot)
def get_winnings_without_special_ball(self):
return get_winnings_no_pb()