Skip to content

Instantly share code, notes, and snippets.

View ETCBishal's full-sized avatar
🎯
Focusing

Bishal jaiswal ETCBishal

🎯
Focusing
View GitHub Profile
@CodeWithHarry
CodeWithHarry / Tic-Tac-Toe.py
Created April 30, 2022 05:36
Code for the tic tac toe game we created in this video: https://youtu.be/E8fmDDtaHLU on CodeWithHarry channel on YouTube
def sum(a, b, c ):
return a + b + c
def printBoard(xState, zState):
zero = 'X' if xState[0] else ('O' if zState[0] else 0)
one = 'X' if xState[1] else ('O' if zState[1] else 1)
two = 'X' if xState[2] else ('O' if zState[2] else 2)
three = 'X' if xState[3] else ('O' if zState[3] else 3)
four = 'X' if xState[4] else ('O' if zState[4] else 4)
five = 'X' if xState[5] else ('O' if zState[5] else 5)