https://youtu.be/E8fmDDtaHLU
source link: https://gist.github.com/CodeWithHarry/d83fed6958b7626ef51aa87c2d7130de
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
https://youtu.be/E8fmDDtaHLU on CodeWithHarry channel on YouTube · GitHub
Instantly share code, notes, and snippets.
Sir, we need the latest Python course for 2022 but it should be a little bit advanced. Please Harry sir.
Thanks HarryBhai I Just Completed the code with "game draw" and optimized it little bit
https://github.com/Vivekgupta29/tictactoe
Harry Bhai its Awesome
We need latest and updated Python code for 2022 with from basics to new syntax and advance features.
You could just use space instead of numbers like below for better representation of board.
zero = 'X' if xState[0] else ('O' if zState[0] else ' ')
Bahut achha game Harry bhi
Thank you
please check my forked version, I modified it,
your code is simple for beginners and easy to understand,
while my refactored version needs higher level + fixed bug that any player can overwrite other player cell,
thank you
Added another version with colors and more refactoring
added draw condition in case no players wins
There are some of glitches in the given code which i could find:
- It goes to infinity when no match is made.
- It doesn't shows the the final board and declare directly the winning team.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK