From: Erik V. <eri...@xs...> - 2010-04-11 16:06:41
|
Pending answers to the below questions, I have committed code that does the following: - In cases where a company has a defined home city, other companies are prevented to lay tokens if there is no extra free space (be it never, as in 1830 Boston/Baltimore, or temporarily, as in yellow/green 1830 NE New York). - In cases where a company must choose its home city, other companies are prevented to lay any tokens until that home token has been laid. This applies to 1830 Erie and 1835 BA. - A special provision was needed for green 1835 Berlin, where the one free token slot can be used even if PR has not yet started. If I have overlooked other special cases, please let me know. For now, these checks only apply during post-action validation. Once Stefan's new route awareness feature is applied to the back-end code, these checks can also be applied pre-action to prevent untokenable hexes to be highlighted. Erik. -----Original Message----- From: Erik Vos [mailto:eri...@xs...] Sent: Sunday 11 April 2010 15:25 To: 'Development list for Rails: an 18xx game' Subject: RE: [Rails-devel] Tile and Token Lay GUI Hints >Ultimately the list of allowed locations will have to be prepared in OperatingRound and put into the LayTile/LayBaseToken actions (which are already prepared to contain such lists). Doing that will also make it easier to avoid disallowed lays, such as a NYNH token on Boston in 1830. Such checks don't yet exist (even in post-laying action validation), and are on my list to be implemented soon. On this matter: I have recently implemented the blocking of token lays on Mannheim/Ludwigshafen (1835) if BA has not yet laid its home token on that hex. As a similar rule also applies to 1830 Erie, I think I will create a generic option that can be set in the XML. My question is: does this rule apply to all similar cases, i.e. where an OO-style two-city hex has a yet unspecified home base? The only other case I'm currently aware of is 1856 Hamilton, the home base of THB. The 1856 rules and all rule clarifications I have found are silent on this matter, i.e. on the question if another company may lay a token there before the THB does. So I would think that it is allowed in this case. Also, am I right in concluding that in none of the cases mentioned other companies are prohibited to lay the first *tile* on such a hex? Erik. |