Education
TIC TAC TOE AI!
Curly Code
Today, I will be showing you how to make a tic tac toe AI! This was made in python.
Packages Needed: Random
Function needed from video:
IsWinner():
return (bo[7] == le and bo[8] == le and bo[9] == le) or (bo[4] == le and bo[5] == le and bo[6] == le) or (bo[1] == le and bo[2] == le and bo[3] == le) or (bo[1] == le and bo[4] == le and bo[7] == le) or (bo[2] == le and bo[5] == le and bo[8] == le) or (bo[3] == le and bo[6] == le and bo[9] == le) or (bo[1] == le and bo[5] == le and bo[9] == le) or (bo[3] == le and bo[5] == le and bo[7] == le)
If you enjoyed this video, consider subscribing. It's free and you can always unsubscribe later. Enjoy!
Heart Creator ( 0 ) Subscribe to Creator
More From