Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 188 Bytes
module Monopoly
class MoveCostsLife
def apply(player)
raise NoMoreLifes if player.no_more_lifes?
player.take_life
end
end
class NoMoreLifes < Exception; end
end
You can’t perform that action at this time.