From: Erik V. <eri...@xs...> - 2011-03-26 16:32:27
|
It's not implemented in Rails, as I have just tested. But only now I notice that the rules *do* exclude B&O from being purchasable by a company. I wasn't aware of that <blush> (it's many years ago that I actually played 1830). In any case, we need a bit of XML to specify that exclusion. Many ways to do that, e.g. <Tradeable toCompany="no"/> (the default being "yes", but only if allowed per Phase, where the default is "no"). I would formulate the truth table more generically as below, but essentially it's the same as Scott's: <Phase> <Privates> sellingAllowed <Company> <Tradeable> toCompany Buyable No No No No Yes No Yes No No Yes Yes Yes Erik Van: sco...@gm... [mailto:sco...@gm...] Namens Scott Petersen Verzonden: zaterdag 26 maart 2011 15:36 Aan: Erik Vos Onderwerp: Re: [Rails-devel] B&O PC Sale I think you already know this, but in 1830. all privates can be purchased in Phase 3 (3-train purchased) except B&O which may never be purchased. This is already implemented in Rails, but I don't know where this is specified. I suppose the truth table would be: Phase 2 Phase 3+ Not B&O Not Buyable Buyable B&O Not Buyable Not Buyable On Sat, Mar 26, 2011 at 8:48 AM, Erik Vos <eri...@xs...> wrote: > > No, but such a tag or attribute can be added easily. > > The main question, however, is how such an attribute would interfere with the corresponding setting in the <Private> tag under <Phase>. > > What is the truth table for private being buyable by a company, given the settings in <Phase> and in <Company>? > > > > Erik. > > > > > > Van: sco...@gm... [mailto:sco...@gm...] Namens Scott Petersen > Verzonden: zaterdag 26 maart 2011 14:31 > Aan: Development list for Rails: an 18xx game > CC: Erik Vos > Onderwerp: Re: [Rails-devel] B&O PC Sale > > > > On Sat, Mar 26, 2011 at 8:20 AM, Erik Vos <eri...@xs...> wrote: > > I have no problem letting a company buy the B&O private, if it still lives when the first 3-train has been bought. > > > > Sorry, let me further explain. I would like to implement a similar private company to 1830's B&O that cannot be bought in to a Public Corporation. Is there something in the XML that specifies that property? |