Minor changes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user