If you have two people, Alice and Bob, who both know the solution, every game will be a draw. If a third player, Charlie, doesn't know the solution, as long as Alice goes first against Charlie she will always win.
Your code is very neatly done, but you really should try to get in the habit of commenting on what functions do in a clear way, and when you introduce a new variable say what it is.
For example, at line 51 by looking at the function "def bconv(TTT):" i can immediately tell this thing is converting from B to T. I have no idea what B and T is, or why you're converting them in the first place.
Yeah, actually cleaning of the code and comments is still in progress so I'll add comments to make them clear and look into flushing the mouse input. Thanks for the help.π
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Can you send a Screenshot where you've beaten the Computer ??π
Yup. like I said, it is human-solvable.
dev-to-uploads.s3.amazonaws.com/up...
youtu.be/ZHd5swo8X6c
Woah, that's great. Might wanna look into it. Can you suggest what could I change in the script to overcome this ??
Thanks for the video.π
If you have two people, Alice and Bob, who both know the solution, every game will be a draw. If a third player, Charlie, doesn't know the solution, as long as Alice goes first against Charlie she will always win.
Yeah, that makes sense. But, I thought in the same example maybe the computer can think like Bob and know what's next so...
Your code is very neatly done, but you really should try to get in the habit of commenting on what functions do in a clear way, and when you introduce a new variable say what it is.
For example, at line 51 by looking at the function "def bconv(TTT):" i can immediately tell this thing is converting from B to T. I have no idea what B and T is, or why you're converting them in the first place.
Bacons to tomatoes? :D
You should also clear the mouse input buffer and reinit it after laucnhing and between games. :D
youtu.be/48OqfWgv9ak
Yeah, actually cleaning of the code and comments is still in progress so I'll add comments to make them clear and look into flushing the mouse input. Thanks for the help.π