May-17-2019, 09:46 PM
It looks like every time the roll button is clicked the method
player 1 rolls, 1 lambda function gets connected to the player button.
player 1 clicks move, the 1st lambda function is called.
player 2 rolls, another lambda function gets connected to the player button.
player 2 clicks move, the 1st lambda plus the 2nd lambda gets called.
This will continue to increase every time roll is clicked.
diceRoll
is called in which a new lambda is connected to the move player button.player 1 rolls, 1 lambda function gets connected to the player button.
player 1 clicks move, the 1st lambda function is called.
player 2 rolls, another lambda function gets connected to the player button.
player 2 clicks move, the 1st lambda plus the 2nd lambda gets called.
This will continue to increase every time roll is clicked.