diff --git a/blackjack.py b/blackjack.py index a704398..a8bb405 100644 --- a/blackjack.py +++ b/blackjack.py @@ -195,6 +195,7 @@ def main(): for event in pygame.event.get(): if event.type == QUIT: pygame.quit() + return elif event.type == pygame.MOUSEBUTTONDOWN and not (gameover or stand) and hitB.collidepoint(pygame.mouse.get_pos()): #gives player a card if they don't break blackjack rules card, cA = genCard(ccards, userCard)