Name: Anonymous 2011-09-29 17:35
class tic:
turn = "x"
def changeturn(self, y = turn):
if y == "x":
self.turn = "o"
if y == "o":
self.turn = "x"
'''WHY THE FUCK ISN'T this working? The changeturn(), I mean, it only works once!'''
class tic(object):
turn = "x"
def changeturn(self, y = None):
if not y:
y = self.turn
if y == "x":
self.turn = "o"
if y == "o":
self.turn = "x"