From: Stefan F. <ste...@we...> - 2015-08-28 20:18:32
|
Erik: most likely in the beginning of Rails the PD was neither during StockRounds nor during the auction updated after each action. I added a PlayerNameModel now that is a very instructive application of the new core mechanism: Each players PlayerNameModel adds itself to the PlayerOrderModel of the PlayerManager. The PlayerOrderModel itself contains various state variables, including the PriorityPlayer state. So as soon as the PriorityPlayer variable changes this indicates that the PlayerOrderModel has changed and this implies that the PlayerNameModel could have changed. A Field in the UI observes the PlayerNameModel and gets updated accordingly. This mechanism is highly reliable and so only a few lines of code had to be added/changed to make the Player captions changing with the PriorityPlayer changing. This is now much easier in 2.0 compared to the beginning of 1.x coding. Stefan On 08/28/2015 06:26 PM, Erik Vos wrote: >> The next bug to fix is that the priority deal is not updated during the >> StartRound. This was also true in Rails 1.x. > > I think the historic reason was that the 1830 rules only talk about > assigning the Priority Deal at each _closure_ of a stock round (including > the initial one). > And thinking about that, I concluded that the priority does not yet matter > in the initial round. Other games may differ. > As things have developed, in Rails there now indeed is a discrepancy between > StartRounds and StockRounds in continuously keeping track of the (virtual) > priority during a round. > > Erik > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |