[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
AI Challenge Forums • View topic - Ants still in the Hive

It is currently Sun Aug 18, 2019 11:45 am Advanced search

Ants still in the Hive

Share and discuss ideas for your entries here.

Ants still in the Hive

Postby steaky1212 » Thu Nov 03, 2011 11:01 am

Hi,

Does anyone know of a way to get the amount of ants still to spawn from the Hive?

Obviously this info is visible in the web visualisation, but is it exposed to the API - specifically the Java starter kit.

Additionally, if this stuff is available to the python kit, how would I expose this functionality to the Java kit?

Many thanks,
Steaky
steaky1212
Cadet
 
Posts: 9
Joined: Tue Nov 01, 2011 1:06 pm

Re: Ants still in the Hive

Postby chaRlesgRiffiths » Thu Nov 03, 2011 11:13 am

Not exposed. To find out, you have to keep track of how many ants you spawn and how much food you eat.
chaRlesgRiffiths
Cadet
 
Posts: 4
Joined: Sat Oct 29, 2011 7:03 am

Re: Ants still in the Hive

Postby steaky1212 » Fri Nov 04, 2011 4:00 pm

So for food eaten you could say that you have eaten food when food disappears and you are the closest ant to it.
For dead ants you could take the current position of every ant, and if that position or the position it was moving into didnt contain the ant then its prob dead
steaky1212
Cadet
 
Posts: 9
Joined: Tue Nov 01, 2011 1:06 pm

Re: Ants still in the Hive

Postby RyokuHasu » Fri Nov 04, 2011 4:32 pm

don't forget you get a list of the dead ants and the owners from the last turn, you can use this to find your dead.

the dead list for each turn can be seen. ;D
RyokuHasu
Captain
 
Posts: 25
Joined: Wed Nov 02, 2011 2:24 pm

Re: Ants still in the Hive

Postby pedrosorio » Fri Nov 04, 2011 5:17 pm

pedrosorio
Lieutenant-Colonel
 
Posts: 42
Joined: Sun Oct 30, 2011 4:24 pm

Re: Ants still in the Hive

Postby steaky1212 » Fri Nov 04, 2011 6:28 pm

Correct me if I am misunderstanding:

number_in_hive = (food_eaten+1) - antsAlive - antsDead;

That is I should have a total of (food_eaten+1) ants - made up of ants that have been killed, ants still to spawn and ants roaming around.
steaky1212
Cadet
 
Posts: 9
Joined: Tue Nov 01, 2011 1:06 pm

Re: Ants still in the Hive

Postby ChrisH » Fri Nov 04, 2011 10:22 pm

Slight correction:

# in hive = ants at beginning of game + total food eaten - ants currently alive - total ants that have died
ChrisH
Colonel
 
Posts: 57
Joined: Tue Nov 30, 2010 8:54 pm

Re: Ants still in the Hive

Postby BenJackson » Fri Nov 04, 2011 11:50 pm

BenJackson
Colonel
 
Posts: 94
Joined: Sat Oct 29, 2011 4:16 am

Re: Ants still in the Hive

Postby Parasprites » Sat Nov 05, 2011 2:25 am

Yeah, it's hard to measure food eaten exactly.
Parasprites
Major-General
 
Posts: 224
Joined: Mon Oct 24, 2011 3:08 pm


Return to Strategy

Who is online

Users browsing this forum: No registered users and 1 guest

cron