Skip to content

Instantly share code, notes, and snippets.

@nthx
Created January 12, 2012 00:42
Show Gist options
  • Select an option

  • Save nthx/1597739 to your computer and use it in GitHub Desktop.

Select an option

Save nthx/1597739 to your computer and use it in GitHub Desktop.
class PlayingMonopolyUseCase
execute: (game, player, board) =>
game.player_throws_a_dice(player,
(field) ->
bonuses = game.apply_bonuses_from_field_cards(player, field)
game.take_other_players_bets_and_pick_best_and_apply(player)
if bonuses
ui.notify_bonuses(bonuses)
)
game.switch_to_next_player(player)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment