this post was submitted on 27 Jun 2025
849 points (98.6% liked)
Programmer Humor
24662 readers
1092 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Did the program cheat? Tic tac toe is a tie if opponents play correctly.
I'm probably remembering it wrong, it was a long time ago. It definitely always either won or tied but could never lose, because it knew the right responses to every move. No, it didn't cheat lol.
How do you define cheating in such a simple game?
Placing moves in invalid locations, passing a turn, or making multiple moves on one turn?
There are no invalid locations in tic Tac toe, passing a turn provides no advantage, I suppose you could take extra turns to cheat.
An invalid turn would be something like placing a move on top of an already-filled square or outside of the 9 grid spaces. It seems obvious to a human that you can't do these things, but computer bugs have a tendency to do things you don't expect. And yes, passing a turn doesn't provide an advantage, but I listed it because it's still technically cheating.