ollybh / 18xx

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

Special rules for private railway track connections from Gotthard hex (H11) #144

Closed ianwilson156 closed 6 days ago

ianwilson156 commented 1 week ago

The FOB has a home hex in H11, but isn't supposed to be able to trace a broad-gauge route from there - it is only connected to the narrow-gauge part of that hex. The program correctly rejects a narrow-gauge build in C12, but allows a broad-gauge build. Similarly, GB can't trace a route from the narrow-gauge part of H11. It's a crossover: they are several thousand feet apart (vertically)!

ollybh commented 1 week ago

I think I've understood this. It's a bit different to anything in 1858, the code for that game is assuming that if a private’s home hex is a plain track hex, then any track can be used to trace a route for the private. But here FOB can only trace routes from the metre gauge track, and GB can only trace routes from the broad gauge track.

Is this also going to apply when these privates can be swapped for a public company share? To exchange FOB, do you need to be able to trace a route to the narrow gauge track in this hex (or to one of its other home hexes)? Or would a connection using a broad gauge route to H11 be sufficient?

ianwilson156 commented 6 days ago

Yes, it is a bit different from 1858. And yes, a major would need to trace to the appropriate gauge of track in H11. It may be simpler just to remove H11 as the home hex of GB and FOB - as long as the track stubs remain as they are. It would mean GB couldn't build towards Lugano before building Altdorf, but that's no hardship.

ollybh commented 6 days ago

I had also wondered about removing H11 from GB and FOB’s home hexes, but that wouldn't be much simpler, I'd have to change the way that stubs are handled.

I've fixed the first part of this: GB can now only trace routes from H11 using the broad gauge track and FOB can only use the metre gauge track.

I'll leave the issue open until I've stopped connections to public companies using the wrong track.

ollybh commented 6 days ago

The check for a public company’s connection to the right piece of track in H11 is now in place.

ianwilson156 commented 6 days ago

Great!