18xx icon indicating copy to clipboard operation
18xx copied to clipboard

[1822 Family] Feature Request - Automated Money Doubler Private function

Open TheTagoreler opened this issue 1 year ago • 1 comments

Each of these games has a private that doubles player cash for turn order purposes. In two cases, doubling player cash would not affect turn order:

  1. If the player who owns the private already has the most cash of all players in the game
  2. If the player who owns the private would not, even with double their current cash, overtake the next player

Perhaps it is worth implementing a script that checks

  1. If the Private is in player hands
  2. If the use of the private would make a difference to turn order
  3. Skip the prompt asking the player if they would like to use the private if 2 is true. This would help speed up gameplay loops because sometimes you are waiting hours for another player to sign back in just to press this one button.

TheTagoreler avatar Feb 15 '24 14:02 TheTagoreler

It looks like we may be able to implement those 'skip' conditions in this func (currently we just check if it's owned by a player, but it could check those two conditions to skip the step if using the power would be a no-op)

https://github.com/tobymao/18xx/blob/master/lib/engine/game/g_1822/game.rb#L1391

benjaminxscott avatar Mar 20 '24 04:03 benjaminxscott