+ 2
Help with Tic tac toe python
I got everything working perfectly fine until I tested it, and found out that when there is a win, but the entire board is filled, it results in a tie. https://sololearn.com/compiler-playground/cesQcCzC2X47/?ref=app
15 ответов
+ 2
My first guess would be that the check for a tie was running before the check for a win, but this does not seem to be the case, so I believe the check for a win must be flawed.
+ 1
I just realized I used an if for the is_tie function instead of an elif. I fixed it. It works.
+ 1
Jonathan Dodge Don’t confess such lies on yourself! Besides, you literally just found a mistake you made and corrected it. You’re not dumb.
+ 1
It took me 4 hours, and it was because there was an if instead of an elif.
+ 1
Also I used ai to help
+ 1
Someone who has a bunch of book learning, but doesn’t know how to apply it, is dumb. You didn’t know the technical aspects, but you knew how to respectfully ask for help, and you succeeded. That’s wise.
+ 1
Also, how do you know he didn't get cursed by the wizard of Oz to be an immortal cat confined to this mobile app?
+ 1
Jonathan Dodge ‘Cause the Wizard Of Oz was a fever dream.
+ 1
CodingMaster Never throw unexplained code at someone trying to fix their own. That makes it very tempting to just give up learning and use yours blind.
0
I'm dumb
0
You're frisk from undertale, aren't you?
0
Frisk doesn’t ever say anything.
And he isn’t a cat. He is yellow, though.
Also, fun fact, Undertale was programmed horribly, but it’s still a good game. Toby Fox isn’t dumb, and you aren’t dumb. See? 😀
0
He doesn't say anything because he is being controlled by the character.
0
Are you sure he is?