trouble with managing button clicks
i have a project i'm working on for school, however i'm stumped at a particular spot. i have to create a matching game and i'm not sure how to manage my button clicks. for example:
if i click button 1, it changes the button text to the tag name. when i click on a second button, it will check to see if the tag names match, if so, it they will both disable; otherwise they should go back to being the button.text.
attached is my code.
thank you.