From: Erik V. <eri...@xs...> - 2011-11-20 11:41:05
|
I'm working on share selling right now because of bugs reported by Stefan, and I'll will also pick up these problems. One remark for now: selling any mixtures of 5% and 10% shares in one action has been deliberately omitted for the sake of simplicity. Two separate actions are required. The default behaviour of Rails is (was? In any case: should be) that in 1835 the price will NOT fall again in such a case (and that the selling price remains the same). I will check what actually happens. Erik. > -----Original Message----- > From: John David Galt [mailto:jd...@di...] > Sent: Sunday, November 20, 2011 5:23 AM > To: Development list for Rails: an 18xx game > Subject: Re: [Rails-devel] Further 1835 testing > > This save file is a later one from the same game, and shows an amusing > stock-market bug. > > At the point of the save, John has three 20% certificates of OL. > If I click to sell some of them, the program offers to let me sell either one or > two 10% certificates, or one or two 20% certs, but not three 20% certs. (So > apparently the game engine "thinks" I have two 20% and two 10% certs, but > that is not possible -- with 30% still in the IPO, only one 10% cert has ever > been purchased.) > > It gets even more interesting if I take the program up on its offer to let me > sell one 10% cert. When I do this, I am credited with 86M and the share price > falls as if the sale had taken place -- but all holdings stay the > same: I still own 60%. > > It gets still weirder if I "Forced Undo" the sale: Undo does nothing, but I can > "sell" another 10%, again gaining the market price of one share and dropping > the price further while giving up nothing. (The "Game Report" > window does not reflect the Undo so maybe that is a no-op here.) > > (A possibly related annoyance I found earlier: If Marcus wants to sell some of > his 15% holding of PR, the interface allows him to sell either his 5% certificate > or his 10% cert, but not both at the same time. I can sell one at a time, but > this causes the price to fall twice, which is not possible under the rules of > 1835.) |