

I made Knots and Crosses (Tic Tac Toe) in my computing class for python. It doesnt have ai because Im not smart enough but it works for 2 players, enjoy :) Source: import random # check if a number is an integer def isInt(x): for y in x: if ord(y) 57: return False return True # prints the table def prtTable(): print(f" a b c ") print(f" ┌───┬───┬───┐") print(f"1 │ {data[0]} │ {data[1]} │ {data[2]} │") print(f" ├───┼───┼───┤") print(f"2 │ {data[3]} │ {data[4]} │ {data[5]} │") print(f" ├───┼───┼──...

Tap to see all activity →
No reviews for Knots and Crosses yet
Be the first to write one.