[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/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/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/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 - A Simplified Ant Wars (With Pics!)

It is currently Fri Sep 21, 2018 4:24 pm Advanced search

A Simplified Ant Wars (With Pics!)

Topics about starter packages, visualizer or any other third party tools.
Please submit new language requests in the Language Request Forum.

Re: A Simplified Ant Wars (With Pics!)

Postby Suicidolt » Fri Jan 28, 2011 5:48 am

this is very neat. I think it could be a bit more complex and still within reason.

That said, it's the end of January. How about that next contest already?
Head Coder for the Adventure at Your Own Risk Neverwinter Nights Server.
Coder for
Developer of the stopforumspam phpbb mod that protects this forum.
C# Developer by day. Experimenting with many other languages by night.
Suicidolt
Cadet
 
Posts: 6
Joined: Sat Nov 06, 2010 3:54 am

Re: A Simplified Ant Wars (With Pics!)

Postby McLeopold » Thu Feb 03, 2011 12:15 am

Simplified Ant Wars with modified birth and death rules.



An ant will die if there are more enemy ants within a radius of 3.
An ant will be born if there is an ant within a radius of 3 of a piece of food. The new ant goes to the side with the most ants. Ties remain unresolved.

Also fixed some issues where ant births and deaths were affecting the current turn. If a string of food pellets was next to a single ant, if the ants and food where in the correct order internally in the engine, the entire string could have gone to a player as live ants.

I'm hoping to write some "fair and random" code for the food spawning. Maybe some objective scoring as well.

EDIT: Here's some eight player goodness.

McLeopold
Contest Organizer
 
Posts: 262
Joined: Sun Sep 19, 2010 3:31 am

Re: A Simplified Ant Wars (With Pics!)

Postby McLeopold » Fri Feb 04, 2011 6:33 pm

McLeopold
Contest Organizer
 
Posts: 262
Joined: Sun Sep 19, 2010 3:31 am

Re: A Simplified Ant Wars (With Pics!)

Postby jeffreyrainy » Fri Feb 04, 2011 6:48 pm

jeffreyrainy
Cadet
 
Posts: 5
Joined: Mon Oct 18, 2010 5:32 pm

Re: A Simplified Ant Wars (With Pics!)

Postby McLeopold » Fri Feb 04, 2011 10:43 pm

McLeopold
Contest Organizer
 
Posts: 262
Joined: Sun Sep 19, 2010 3:31 am

Re: A Simplified Ant Wars (With Pics!)

Postby dimkadimon » Fri Feb 04, 2011 11:47 pm

You could define range as the shortest path (using horizontal/vertical moves only) from object A to object B. If there is no such path (the two object are blocked by walls) then A and B are not in range of each other and hence do not influence each other. We can run all-pairs shortest path algorithm for all objects to compute all the pair-wise distances in one go.
dimkadimon
Major-General
 
Posts: 263
Joined: Wed Oct 06, 2010 11:34 pm
Location: Adelaide, Australia

Re: A Simplified Ant Wars (With Pics!)

Postby phu54321 » Thu Feb 17, 2011 1:35 am

phu54321
Lieutenant
 
Posts: 11
Joined: Mon Nov 29, 2010 7:50 am

Re: A Simplified Ant Wars (With Pics!)

Postby Astek » Thu Feb 17, 2011 12:44 pm

Interesting idea, so here are my few cents which are supposed to make this challenge more interesting and balanced:

Instead of increasing numbers you can make single ant grow bigger (power of % ants, two for example at the beginning) or make faster (% faster move for each to be evaluated in tests).

It will be option to choice

And you should consider giving some kind of exp for killing opponents.

Adding this futures will make game more challenging

Regards
Adrian
Astek
Captain
 
Posts: 20
Joined: Sun Oct 24, 2010 8:44 am

Previous

Return to Starter Packages & Tools

Who is online

Users browsing this forum: No registered users and 2 guests

cron