Mercurial > sypikslang
comparison gamelib/tests/repl_game.py @ 58:52913ba12988
Check for multiple points in can_spend
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Mon, 07 May 2012 23:20:41 +0200 |
parents | 12c33aac7684 |
children | a40a76012bd7 |
comparison
equal
deleted
inserted
replaced
57:9aa0252fb6e4 | 58:52913ba12988 |
---|---|
17 | 17 |
18 def display_science(self): | 18 def display_science(self): |
19 print "Science:" | 19 print "Science:" |
20 self.science = [] | 20 self.science = [] |
21 for science in self.game.lab.science: | 21 for science in self.game.lab.science: |
22 if science.can_spend(self.game.lab): | 22 if science.can_spend(self.game.lab, 1): |
23 self.science.append(science) | 23 self.science.append(science) |
24 print " %s. %s (%s)" % ( | 24 print " %s. %s (%s)" % ( |
25 len(self.science), science.NAME, science.points) | 25 len(self.science), science.NAME, science.points) |
26 else: | 26 else: |
27 print " -- %s (%s)" % (science.NAME, science.points) | 27 print " -- %s (%s)" % (science.NAME, science.points) |