RoboCute bug?

Anyone else experience this? It happens on startup when I try to run RoboCute.
% python2.5
Traceback (most recent call last):
  File "", line 16, in 
  File "/Local/Games/Python/PyWeek6/Incoming/robocute/lib/", line 44, in main
  File "/Local/Games/Python/PyWeek6/Incoming/robocute/lib/robocute/", line 237, in draw
  File "/Local/Games/Python/PyWeek6/Incoming/robocute/lib/robocute/", line 49, in draw
    g.x = node.x
AttributeError: 'Mouse' object has no attribute 'x'

(log in to comment)


Here is a shortcut to revision 11 that shows the changes that should get it to work.

I'm surprised Python doesn't catch this mistake!.

class Mouse(Node): def __init__(self): super(Node, self).__init__()

'super(Node...' should be 'super(Mouse...'!

The bug got through because I wrote that code at the very end of the contest. Chalk up the other mistakes to being a Python Noob.
I made those changes, but I still got the 'Mouse' object has no attribute 'x' error.

I fixed it by adding these two lines to

class Mouse(Node):
    x = 0 # added
    y = 0 # added
Argh ... I tracked back through the revisions and found in r8 that I had added these lines to
class Node ...
def _init_ ...
   self.x = 0 #added
   self.y = 0 #added
Your way is a quicker fix to judge the entry though. Thanks!