Skip to content

Commit

Permalink
Merge pull request #5657 from TBarchet/master
Browse files Browse the repository at this point in the history
[1822MRS] Added 2-player Variant
  • Loading branch information
tobymao authored Jun 9, 2021
2 parents 606127f + 177b0bb commit fb3b475
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/engine/game/g_1822/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ class Game < Game::Base
BIDDING_BOX_START_PRIVATE = 'P1'

BIDDING_TOKENS = {
'2': 7,
'3': 6,
'4': 5,
'5': 4,
Expand Down
9 changes: 7 additions & 2 deletions lib/engine/game/g_1822_mrs/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Game < G1822::Game
BIDDING_BOX_START_MINOR = 'M24'
BIDDING_BOX_START_MINOR_ADV = 'M14'

CERT_LIMIT = { 3 => 18, 4 => 14, 5 => 11, 6 => 9, 7 => 8 }.freeze
CERT_LIMIT = { 2 => 27, 3 => 18, 4 => 14, 5 => 11, 6 => 9, 7 => 8 }.freeze

DESTINATIONS = {
'LNWR' => 'I22',
Expand All @@ -34,7 +34,7 @@ class Game < G1822::Game
'SWR' => 3,
}.freeze

STARTING_CASH = { 3 => 500, 4 => 375, 5 => 300, 6 => 250, 7 => 215 }.freeze
STARTING_CASH = { 2 => 750, 3 => 500, 4 => 375, 5 => 300, 6 => 250, 7 => 215 }.freeze

STARTING_COMPANIES = %w[P1 P2 P5 P6 P7 P8 P9 P10 P11 P12 P13 P14 P15 P16 P18
C1 C2 C3 C4 C6 C7 C9 M7 M8 M9 M10 M11 M12 M13 M14 M15
Expand All @@ -44,6 +44,10 @@ class Game < G1822::Game
C1 C2 C3 C4 C6 C7 C9 M7 M8 M9 M10 M11 M12 M13 M14 M15
M16 16 M17 M18 M19 M20 M21 M24].freeze

STARTING_COMPANIES_TWOPLAYER = %w[P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 P11 P12
C1 C2 C3 C4 C6 C7 C9 M7 M8 M9 M10 M11 M12 M13 M14 M15
M16 16 M17 M18 M19 M20 M21 M24].freeze

STARTING_CORPORATIONS = %w[7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 24
LNWR GWR LBSCR SECR MR LYR SWR].freeze

Expand Down Expand Up @@ -678,6 +682,7 @@ def discountable_trains_for(corporation)

def starting_companies
return self.class::STARTING_COMPANIES_ADVANCED if optional_advanced?
return self.class::STARTING_COMPANIES_TWOPLAYER if @players.size == 2

self.class::STARTING_COMPANIES
end
Expand Down
2 changes: 1 addition & 1 deletion lib/engine/game/g_1822_mrs/meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module Meta
GAME_TITLE = '1822MRS'
GAME_IS_VARIANT_OF = G1822::Meta

PLAYER_RANGE = [3, 7].freeze
PLAYER_RANGE = [2, 7].freeze

OPTIONAL_RULES = [
{
Expand Down

0 comments on commit fb3b475

Please sign in to comment.