<[EMAIL PROTECTED]> wrote: > The only problem I have is whenever player two goes, it says the cell > is filled. But the code: > > if gameboard[cell] not in 'OX': > gameboard[cell] = 'X' > else: > print "This cell is already filled." > turnnumber = turnnumber - 1 > > is not any different than the code I am using for player one. Anything > I have to change regarding 'OX' or something else?
adding a print gameboard[cell] just before that if-statement is a quick way to check that the cell really contains the right thing. </F> -- http://mail.python.org/mailman/listinfo/python-list