Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python novice

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!'''

Name: Anonymous 2011-10-01 18:50

>>8
Also, please inherit from Object in your classes: class tic(object).
What's the purpose of this?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List