hquxmu / ai-contest

Automatically exported from code.google.com/p/ai-contest
0 stars 0 forks source link

Java sample bots are using its own PlanetWars.java #186

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the product are you using? 
I am browsing at the current sources.

The PlanetWars.java version of the sample bots folder has its own methods, for 
example: 

    // Returns the production of the given player.
    public int Production(int playerID) {
        int prod = 0;
        for (Planet p : planets) {
            if (p.Owner() == playerID) {
                prod += p.GrowthRate();
            }
        }
        return prod;
    }

¿Should bots be using the same PlanetWars.java provided to the player?

¿Does the PlanetWars.jar version contains all those methods?

Original issue reported on code.google.com by ariel.co...@gmail.com on 30 Sep 2010 at 5:10

GoogleCodeExporter commented 8 years ago
Sorry, I misunderstood the interaction with the game itself, the PlanetWars 
class is in the client side, you could close this issue.

Original comment by ariel.co...@gmail.com on 1 Oct 2010 at 2:37

GoogleCodeExporter commented 8 years ago

Original comment by jokeserver on 1 Oct 2010 at 4:18