Cones!

dominantSpeciesGUI4

The way that Dominant Species calculates dominance is weird. If you look at the image, you will see that on the corners of each hex is an element. A food source. On each animal’s player board (not pictured here), there is a row of element tokens as well. An animal’s dominance score is calculated by looking at each element token on the player board and then counting the number of elements on the tile. Then you add it all up. This turned out to be a tricky thing to code. A bunch of nested for loops. I actually managed to find a few handy functions in the Java standard libraries that helped (the basic Java API is positively vast, if you’re not already aware).

Anyway, now I’m at the point where I need to start implementing some actual functionality. This is kind of a terrifying prospect for me. We will see how it goes over the next few days. If I have time.

Viel Glück

3 thoughts on “Cones!

  1. w00t! Exciting times!

    Also, huzzah for nested loops (they’re great (though I prefer while loops(they make me happy(nested parentheses!))))!

    Good work on the coneheads. I figure by the time you’ve mastered the graphics on your game here, I will need your expertise help with implementation on mine.

  2. I don’t store anything to a file. I have some basic game data (like locations of sprites in a .png stored in text files for the time being. It’s set up in such a way that I can easily switch formats at some indeterminate point down the road.

Leave a Reply

Your email address will not be published. Required fields are marked *