Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
simple tic tac toe
Post Flair (click to view more posts with a particular flair)
Post Body

I have a 3x3 grid of buttons in a outlet collection.

All buttons must start with no text in them.

I need to make it so that when any button is tapped once, an "X" appears in that button.

when the button is tapped again, an "O"

if tapped again the cycle of taps repeats.

what the simplest code to put in the button function call to make this happen

I have already created the outlet collection and connected all the buttons, I just can't figure out how to make the logic for the button functionality. please help its due soon

https://preview.redd.it/er4t7nlg473c1.jpg?width=2428&format=pjpg&auto=webp&s=27c0c5679a9b7273ad2fc69b0e6b9fb583f3bd56

Author
Account Strength
70%
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,276
Link Karma
647
Comment Karma
629
Profile updated: 3 days ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
11 months ago