Open kuashio opened 12 years ago
There are a few issues with this:
The way I've done it in my bot (which I probably should add to the starter pack at some point) is to add another structure to ants.h, allocate it the same way as the others are done in _init_game(), and set the square that a hill occupies to a number between '0' and '9'. If both an ant and a hill occupy the same square I set the square to the letter that represents that player and also set the most significant bit of that byte to a 1.
Please re-post this issue in the main aichallenge/aichallenge repo
Does the "Hills not implemented yet" comment on the starter packages page mean that the code doesn't register hills in the local map representation?
I made my own implementation and it has worked fine. I just added a new case into the switch in the __initmap function in ants.c Here it is:
Is this enough to say hills are implemented in C?