def choose_draw(self, records): #Getting the current deposit deposit = int(records['Place'].iloc[-1]) #print 'Pile: ' + str(self.to_human_readable(deposit)) print('Draw from deck? (y/n) ', end='') #Getting the choice from the user choice = UI.from_human_readable(input()) return choice[0].lower() == 'y'
def choose_tonk(self, records): #Getting the current hand hand = records[self.name].iloc[-1] value = self.eval_hand(hand) print(str(UI.hand_to_human_readable(hand)) + ': ' + str(value)) print('Call Tonk? (y/n) ', end='') #Getting the choice from the user choice = UI.from_human_readable(input()) return choice[0].lower() == 'y'