ollybh / 18xx

A platform for playing 18xx games online!
https://www.18xx.games
Other
0 stars 0 forks source link

Fix check for whether a player can bid for a major company #111

Closed ollybh closed 2 months ago

ollybh commented 3 months ago

At the moment the check is that the player has F280 cash. The check needs to be amended to take account of how many majors the player is currently leading the auction for, plus allow for shares that could be sold in the next stock round.

ollybh commented 3 months ago

Need to also check that the player can take the extra certificate needed to start the major: if they are at certificate limit and do not have any shares that can be sold, then they won't be able to start the major company as their first action in the next stock round.

ollybh commented 3 months ago

Either case should be logged, to make it clear why the player isn't given the option to bid on a major.