Minor changes

This commit is contained in:
2023-08-14 18:36:15 +10:00
parent ad653a33d2
commit 3d51687b51
6 changed files with 6 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
import random
from Ledger import Ledger
#TODO Kill Benson
#TODO Starting a game with 21 fucks with hidden cards
#TODO Look into 5card jack thingo that Tim mentioned
#TODO Insurance - If dealer starts with 21, you can bet against it and win your money back
@@ -127,10 +126,11 @@ class Hand():
def remove_from_hand(self, index):
return self.hand.pop(index)
def peek_card(self, index):
return self.hand[index]
def hide_card(self, index):
card = self.remove_from_hand(index)
card.turn_card()
self.add_to_hand(card, index)
self.peek_card(index).turn_card()
def __len__(self):
return len(self.hand)