X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fgameboard.py;h=8d4106cc931011dea15725842abf188a0b51f999;hb=963216cd4493996f5859347fe50249fb5865d6e5;hp=980a046c4c4f68e690219a2a216f818df018ce9e;hpb=c8c4a15980bf4b49dd307e83d5e2b10a1fe7b28c;p=naja.git diff --git a/naja/gameboard.py b/naja/gameboard.py index 980a046..8d4106c 100644 --- a/naja/gameboard.py +++ b/naja/gameboard.py @@ -90,6 +90,10 @@ class GameBoard(object): self.health -= 1 # TODO: Check win/lose + def replace_card(self, position): + location = LocationCard.new_location(choice(self.locations).copy()) + self.board_locations[position] = location + def change_mode(self): """Advance to the next mode""" if self.player_mode == MOVE: