~piotr-machura/python-miniprojects

43e15d94e4f5501e418c877a0717cbac7304008c — Piotr Machura 2 years ago 9e8a0be
Added requirements for collatz
3 files changed, 10 insertions(+), 2 deletions(-)

M blackjack/exception.py
M blackjack/player.py
A collatz/requirements.txt
M blackjack/exception.py => blackjack/exception.py +7 -1
@@ 2,4 2,10 @@


class BlackJackException(Exception):
    pass
    """The exception BlackJackException used to manage game flow. Contains a
    field `message` with the message to be displayed.
    """

    def __init__(self, message: str):
        super().__init__()
        self.messsage = message

M blackjack/player.py => blackjack/player.py +1 -1
@@ 49,7 49,7 @@ class Player:
        return points, points_alt

    def hit(self, deck: Deck, hwo_many: int):
        """Pop `n` cards from `deck` and add them to `self.cards`"""
        """Pop `n` cards from `deck` and add them to `self.hand`"""
        try:
            self.hand += [deck.pop() for _ in range(hwo_many)]
        except ValueError:

A collatz/requirements.txt => collatz/requirements.txt +2 -0
@@ 0,0 1,2 @@
PyQt5==5.15.0
PyQt5-sip==12.8.1