tobymao / 18xx

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

[1848] Game pauses for Take loan if trainless corp should move into the 0 price market space. #10677

Open rockinghorsedreams opened 4 months ago

rockinghorsedreams commented 4 months ago

https://18xx.games/game/147952

The company has enough money to buy the available 8 trains, but it is forcing a Take Loan action.

Tried on Edge, Brave, and Chrome. Another user tried to force it in Master Mode which was also unsuccessful.

benjaminxscott commented 4 months ago

Ah the 1848 loan step timing logic is a bit wonky (you can take loans essentially at any time w/ different results), so it's probably something to do with that

fwiw Master Mode just allows you to act on behalf of another player, it doesn't force an action to go thru or anything

philcampeau commented 4 months ago

NSW was already one space to the right of the close companies space at the beginning of its operating turn. After run trains, it would have moved back and closed.

The issue is only that the code is written to always block on the take loans step. In this case though, your corp was already dead. You can just click Take Loan and end the turn.