It is currently Tue Dec 11, 2018 10:15 am Advanced search

Possibility to simulate a turn?

Random stuff about the contest, posts that don't fit in the other forums.

Possibility to simulate a turn?

Postby bneuman » Sat Sep 11, 2010 2:30 am

Is it possible to use the code already written to simulate a turn in the game?

Basically, I want to be able to see what the world will look like after a few turns. I'm using C++ and I haven't delved into it too deeply but it looks like one of the java tools does all the actual work and the C++ libraries just output some text.

If there is no way to do this I could write some of my own code to figure out where all the fleets are going and what the scores will be when they get there but it seems like extra work
bneuman
Cadet
 
Posts: 2
Joined: Sat Sep 11, 2010 2:22 am

Re: Possibility to simulate a turn?

Postby rafsoaken » Sat Sep 11, 2010 5:10 pm

An unofficial python starter kit does that already for you
See topic viewtopic.php?f=18&t=459
and the source here:
http://github.com/simu/planetwars-pytho ... fbba5fd9c9
rafsoaken
Cadet
 
Posts: 7
Joined: Fri Sep 10, 2010 11:12 am


Return to Misc

Who is online

Users browsing this forum: No registered users and 2 guests

cron