From: Erik V. <eri...@xs...> - 2010-03-21 14:48:56
|
Hi Alex, Of course there is much interest in handling routes. To me, "route calculation" sounds ambiguous, as it could mean two different things: 1. Route determination, for the purpose of selecting valid tile and token lays. 2. Revenue calculation. I suppose you refer to the latter. Rails has neither yet. If I would ever have the time and guts to turn my developments efforts to the subject of routes, I would start with the former, which I guess is easiest to start with, and also much needed. In any case, Rails does not yet maintain a connection grid, but the bits and pieces (tracks and stations) do exist as attributes of the Tile class. From there it shouldn't be too difficult to compose a complete connection grid. Feel free to download the source code and try sorting out where and how your code might fit in. Erik. -----Original Message----- From: Alex Tikhonov [mailto:al...@sh...] Sent: Sunday 21 March 2010 01:10 To: rai...@li... Subject: [Rails-devel] Automatic route calculation Hi all, Per Brett Lentz suggestion I am moving this discussion here and reporting my message from 18x yahoo group. This is my first post here, but I have been lurking for a while. I wonder if there is an interest in adding automatic route calculation to Rails. I am trying to create AI for some of the games (and no, it's not going well), but as a side effect I have code that computes the routes. It supports some of more widely used rules (various town treatment, city and route bonuses, multipliers etc). It runs on an abstract connectivity graph, so it should not be too hard to integrate. Alex. ---------------------------------------------------------------------------- -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |