From: Stefan F. <ste...@we...> - 2014-01-28 08:13:20
|
Mike: great proposal to volunteer on 1862 ;-) As 1880 not an easy one. However in general I think targeting the newer titles is a good idea, as they are more likely to be played and usually they are not supported by Lemmis moderator. Some comments below. On 01/27/2014 09:03 PM, Michael Alexander wrote: > I am considering trying to implement 1862 in Rails. Much of it is > pretty straight-forward, but there are a couple of significant hurdles. > > 1) 1862 has a new type of rounds - "Parliamentary Rounds". These come > before each stock round. I suppose they could be done as part of the > stock rounds, but it would probably be a lot cleaner to have a new round > type. As I mentioned before on this list, I intend to change the Round mechanism to use mechanisms based on compositions/interfaces instead of the current sub-classing approach which in fact exposes everything of the parent class as an interface. However this will be 2.1. so feel free to start with existing approach. > > 2) Run calculation will be brutal, and probably need to be written from > scratch for 1862. There are three train types in 1862, and they can run > on the same track, but each city can only count once. From my first reading of the train rules it seems that there is no rule which is impossible to implement with the current calculation mechanism. The current implementation already allows trains based on hex-distance (freight trains). The other train types are also supported. Running all trains independently, but counting stations only once will be achieved by changing the network graph. You will have each station included multiple times equal the number of trains, but only once it will have a non-zero score. Using "vertex-visit" sets ensures that only one of the nodes per city will be connected by each train. The various rules that apply to the intersection of trains and visiting tokens will be checked by a dynamic modifier which sets invalid train run combinations to a zero score. However I agree that 1862 without it is already an achievement. > > Also, if I do this, should it go straight into 2.0 or should I start in 1.8? Go to 2.0. I am currently merging and picking from the various branches for the alpha release. After the alpha release (from later today hopefully) please use rails_2_develop. Stefan |