1

https://youtu.be/E8fmDDtaHLU

 1 year ago
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.
neoserver,ios ssh client

https://youtu.be/E8fmDDtaHLU on CodeWithHarry channel on YouTube · GitHub

Instantly share code, notes, and snippets.

Code for the tic tac toe game we created in this video: https://youtu.be/E8fmDDtaHLU on CodeWithHarry channel on YouTube

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:

  1. It goes to infinity when no match is made.
  2. 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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK