Re: Javascript Race Wizard |
Tue, 16 June 2009 14:39 |
|
craebild | | Lieutenant | Messages: 568
Registered: December 2003 Location: Copenhagen, Denmark | |
|
That would be in C++, not Javascript. Still, AFAIK the logic and math commands are the same in C++ and Javascript, so the fact that I do not know C++ should not be a major obstacle.
You mention "calculating a bunch of planets". The code for the hab and econ calculator contains code for calculating the theoretical spread, i.e. the equivalent of averaging an infinite number of random planets.
If Stars! uses a sufficiently low number of planets, then that means that creating the same race twice could give different point totals in Stars!. I would suggest using the theoretical spread for any Stars! clone instead of a limited number of random planets. In my opinion, there is no need to reproduce the bugs in Stars! in a Stars! clone.
I haven't taken a look at the code you linked to yet, but I will - It might not be today, though.
Med venlig hilsen / Best regards / Mit freundlichen Grüßen
Christian Ræbild / Christian Raebild
Report message to a moderator
|
|
|