X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fgameboard.py;h=b03a2092ab9dfe48fe1b7cbbe9a8f416c074a3f2;hb=4c5f45d39c034c4fc78de5f5a75e16e6ad918b95;hp=8d4106cc931011dea15725842abf188a0b51f999;hpb=963216cd4493996f5859347fe50249fb5865d6e5;p=naja.git diff --git a/naja/gameboard.py b/naja/gameboard.py index 8d4106c..b03a209 100644 --- a/naja/gameboard.py +++ b/naja/gameboard.py @@ -90,6 +90,14 @@ 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 + def replace_card(self, position): location = LocationCard.new_location(choice(self.locations).copy()) self.board_locations[position] = location