+ 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 Antworten
+ 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?