by albert » Tue Sep 14, 2010 5:02 pm
Uh, it gives different results? Can you post/attach two game replays which differ, one with Java and one with the C++ engine?
If it differs because of a timeout of one of the bots, that can be kind of random.
My code is based on the most recent Java code (from the Google Code project). I have read that the released Java tools may contain some bug when there are multiple fleets arriving at a planet at the same time. Maybe that is the case here. Check out if the current Java code produces also the same result.
I don't have Windows here, so I cannot really implement and test the code under Windows. You probably need to rewrite most of the Process class (see utils.{h,cpp}) (there is no fork under Windows but it may be work by just using CreateProcess instead; and then you must somehow get access to the stdin/stdout stream of that created process). Everything else should probably work.
If you do so, please send me a patch so I can include that.
Last edited by
albert on Tue Sep 14, 2010 5:09 pm, edited 2 times in total.