Last active
January 20, 2019 23:18
-
-
Save scarybot/14993b27e39a8501950abd1fb83c331e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The game board layout, consisting of an array of Squares. | |
BOARD = [ | |
Square.new( | |
name: 'GO', | |
action: Proc.new { |game, owner, player, property| | |
Transaction.new(from: game.bank, to: player, reason: 'landing on go', amount: game.go_amount) | |
} | |
), | |
BasicProperty.new( | |
name: 'Old Kent Road', | |
rent: [ 2, 10, 30, 90, 160, 250 ], | |
house_cost: 50, | |
hotel_cost: 50, | |
mortgage_value: 30, | |
value: 60, | |
set: :brown, | |
), | |
CommunityChest.new( | |
name: 'Community Chest 1', | |
display_name: 'Community Chest', | |
), | |
BasicProperty.new( | |
name: 'Whitechapel Road', | |
rent: [ 4, 20, 60, 180, 320, 450 ], | |
house_cost: 50, | |
hotel_cost: 50, | |
mortgage_value: 30, | |
value: 60, | |
set: :brown, | |
) | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment