I am practicing with programming a 2-player game where the 2 players take turns on a single screen, for that the buttons clicked by one player during their turn should not be available to the other.
enter image description here
All the red buttons should be disabled for the next turn, but the turn after I want it to turn back to clickable. Is there a way of doing this without accessing all the buttons?
I have tried out having a loop for accessing all of the buttons which have a tag to turn them back to clickable. Just trying to see if there are any other methods.
Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.