[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monsterz] [BUG] 0.4.1 NameError: global name 'score' is not defined



unzip the game, play the game for 2 minutes, then lose :

C:\testing\sam\monsterz-0.4.1>monsterz.py
Traceback (most recent call last):
  File "C:\testing\sam\monsterz-0.4.1\monsterz.py", line 1297, in ?
    main()
  File "C:\testing\sam\monsterz-0.4.1\monsterz.py", line 1293, in main
    monsterz.go()
  File "C:\testing\sam\monsterz-0.4.1\monsterz.py", line 877, in go
    iterator()
  File "C:\testing\sam\monsterz-0.4.1\monsterz.py", line 1072, in
iterate_game
    self.game.game_draw()
  File "C:\testing\sam\monsterz-0.4.1\monsterz.py", line 573, in game_draw
    if score < 5000:
NameError: global name 'score' is not defined

C:\testing\sam\monsterz-0.4.1>

replace score with self.score on lines :

573 575 577

and everything is fine.

O. Souiry

-- 
This is the monsterz mailing-list, see http://sam.zoy.org/projects/monsterz/
Trouble unsubscribing? Please contact <sam@zoy.org>
List archives are at http://sam.zoy.org/projects/monsterz/threads.html