Oct-05-2019, 06:09 PM
I get that, what isn't making sense is why self.hands_inputs the argument to player.fold() and also the list containing the resulting button. That method Shouldn't need all that information, especially since that information includes all the buttons for the previous players.
On a side note, range(pnumplayers) is superfluous. This would work easier by iterating over pplayers instead.
On a side note, range(pnumplayers) is superfluous. This would work easier by iterating over pplayers instead.
for y in pplayers: self.hands_inputs[2].append(Button(self.window, text='Fold', command = lambda: y.fold(self.hands_inputs[0:3])))