Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

import random as rn

Com_table=["a11","a12","a13","a21","a22","a23","a31","a32","a33"]

title="Zero and crose game"

print(title.center(75))

table="a11|a12|a13\na21|a22|a23\na31|a32|a33"

name=input("Name:")

while True:

print(table)

print("Chose your place.")

Input_1=input("Enter:")

table=table.replace(Input_1,"O")

Com_table.remove(Input_1)

Choice_1=rn.choice(Com_table)

table=table.replace(Choice_1,"X")

print(table)

print("")

# if

You might also like