tobymao / 18xx

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

1828: Error using Mohawk Hudson to convert to 50% Presidency share. Argument mismatch. #8482

Open claytonRR opened 1 year ago

claytonRR commented 1 year ago

DO NOT PASTE THE GAME JSON! Please use gist instead.

Please fill out the bug report title with the game name and description

e.g. "[18Chesapeake] Incorrect revenue for route from Baltimore to DC"

What's your Game ID?

If your game is "Multiplayer", provide the link to the game. Copy the link from your browser which will look something like https://18xx.games/game/31337

If your game is "Hotseat", provide a link to your raw game data by using the Tools tab and Copy Game Data.

Paste that data into a github gist and share the resulting link which will look something like https://gist.github.com/[your_name]/[some_letters].

How to Reproduce the Bug?

What steps cause the unexpected behavior?

e.g.

Please include screenshots (you can drag and drop or upload them into this issue)

Which Browser / Platform?

benjaminxscott commented 1 year ago

Which game ID was this?

If you have it available, which action was it?

this shows up in the URL, such as 18xx.games/game/<game_id>?action=<action_id>

michaeljb commented 1 year ago

I found these games with claytonRR where he exchanges the M&H for a 10% share at the following actions:

I couldn't reproduce the error at any of those points, but maybe it occurred at an earlier point in one of those games?

The argument mismatch is a red flag to me that it might be something that works right in the compiled JS but not in Ruby, so whoever fixes this should be sure to test this on the server, not just in hotseat.