projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Action to gain health.
[naja.git]
/
naja
/
gameboard.py
diff --git
a/naja/gameboard.py
b/naja/gameboard.py
index ae80b8c887e926ceaa27af72b76f25ab3ad6a832..b03a2092ab9dfe48fe1b7cbbe9a8f416c074a3f2 100644
(file)
--- a/
naja/gameboard.py
+++ b/
naja/gameboard.py
@@
-90,6
+90,10
@@
class GameBoard(object):
self.health -= 1
# TODO: Check win/lose
+ def gain_health(self):
+ if self.health < self.max_health:
+ self.health += 1
+
def acquire_win_token(self):
self.wins += 1
# TODO: Check win/lose