Oct-05-2019, 05:50 PM
The list self.hands_inputs holds the buttons and pplayers is another list but that one holds player object, the player class has a method called fold, I'm trying to assign to
self.hands_inputs[2][0]a button with a command that calls the fold function of the zeroth player. To do so I created the list pplayers (it's a parameter but it doesn't matter) that holds in each place a player object. In the for statement y ranges from 0 to let's say 5, so it should assing at each iteration
self.handsinputs[2][y]a button with the command
pplayers.[y].fold(parameters)