Skip to content Skip to sidebar Skip to footer

Accepting Numbers From 1-9 Tic Tac Toe

Here's a TIC TAC TOE game i have created using Python.. import os os.system('cls') i = 0 #Exiter def exithoja(): import sys raw_input sys.exit() #Displays Win or Draw

Solution 1:

You are mixing up your assignment = and equality check ==. So you have lines:

ifplace== 0:
        while place==0:
            place == player11(name1,grid)

(similarly for the other played) and you need the third one to begin place = not place ==.

Post a Comment for "Accepting Numbers From 1-9 Tic Tac Toe"