[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/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 - The open source your ant bot topic

It is currently Mon Jan 22, 2018 9:54 am Advanced search

The open source your ant bot topic

Share and discuss ideas for your entries here.

Re: The open source your ant bot topic

Postby gak » Tue Dec 20, 2011 3:04 am

Rank was ~850 and is written in Python. Wrote it in a few days before the end of the comp because I didn't know about the competition until the last minute.

https://github.com/gak/google-ai-challenge-ants
http://aichallenge.org/profile.php?user=13721

I'm curious to know what you think!
gak
Cadet
 
Posts: 1
Joined: Tue Dec 20, 2011 3:00 am

Re: The open source your ant bot topic

Postby codetiger » Tue Dec 20, 2011 5:35 am

Here is my bot source code. The best skill level my old version got is 75 but I am expecting my new version to beat 82. And the source is in pypy

https://github.com/codetiger/Ants-for-AI-challenge

codetiger
Lieutenant-Colonel
 
Posts: 47
Joined: Sun Aug 21, 2011 4:47 am

Re: The open source your ant bot topic

Postby bhasker » Tue Dec 20, 2011 6:39 am

http://code.google.com/p/malazan-ants/

Probably will end up in the 800-900 rank range. Though the version on this repo is newer than the final upload and probably will do better.
bhasker
Lieutenant
 
Posts: 12
Joined: Tue Sep 14, 2010 2:17 am

Re: The open source your ant bot topic

Postby zarkon » Tue Dec 20, 2011 1:52 pm

I uploaded my code at

https://github.com/mbrezu/zarkon

and a document explaining the code is at

https://github.com/mbrezu/zarkon/blob/m ... proach.mkd

I look forward to looking at the bots other people have posted in this topic. Seeing so many good ideas makes me feel dumb, but the educational thrill is too large to resist. :-)

Thanks everyone for a great contest and for generously sharing your ideas.

PS: anyone seeing things to be improved in my code: please share your thoughts. Thanks!
zarkon
Lieutenant
 
Posts: 10
Joined: Sun Dec 11, 2011 1:34 pm

Re: The open source your ant bot topic

Postby tiberiu44 » Tue Dec 20, 2011 4:02 pm

Here's mine. It was doing fine before the contest started but now i got a few timeouts and lost a couple of games.
It's written in C# and if you have any improvement suggestion, please let me know.
AntAING.zip
(37.14 KiB) Downloaded 99 times
tiberiu44
Cadet
 
Posts: 3
Joined: Tue Dec 20, 2011 8:38 am

Re: The open source your ant bot topic

Postby utoxin » Tue Dec 20, 2011 4:51 pm

Mine is doing much better than expected. Currently in the top 500, and looks like it'll probably manage to stay there. We'll see. I would have been happy with top 750. I already linked it once, but here's a link to download the specific tagged version that's running right now.

https://github.com/utoxin/AIChallenge-A ... /version17

I would love feedback. I'm a veteran PHP and Perl developer, and decided I wanted to try my hand at Python. I'm sure I'm doing some things horribly wrong, but I did the best I could.
utoxin
Cadet
 
Posts: 7
Joined: Mon Nov 28, 2011 9:38 pm

Re: The open source your ant bot topic

Postby ademar » Tue Dec 20, 2011 5:57 pm

Here is my bot code. Currently in position 114, it is also my first OCaml program.

https://github.com/ademar/programs/tree ... ntest/ants

And profile:

http://aichallenge.org/profile.php?user=413
ademar
Lieutenant
 
Posts: 12
Joined: Sat Feb 27, 2010 7:38 pm

Re: The open source your ant bot topic

Postby pguillory » Wed Dec 21, 2011 12:38 am

Go version, top 10:
https://github.com/pguillory/aichalleng ... tree/final

C version that preceded it (and also reached top 10 at the time):
https://github.com/pguillory/aichallenge2011-c
pguillory
Lieutenant
 
Posts: 10
Joined: Thu Nov 17, 2011 7:39 pm

Re: The open source your ant bot topic

Postby notgreat » Wed Dec 21, 2011 7:29 am


I'm looking to be ranked somewhere around 150 or so. I use c++.

The biggest trick for my bot is to use a brute force algorithm for fighting in small battles. That jumped my rank from ~600 to where I am now. I use diffusion for exploration, food gathering, and reinforcement. Both that and my large scale battle algorithm could use some more fine tuning. I only use a single diffusion grid, and face major problems with ants all chasing after the same food. I had some ideas for fixing it, but decided to put a 1-day lockdown on code changes that weren't critical bugs (such as my ants suciding into each other trying to get onto an enemy's hill...)
Attachments
finalsubmission.zip
(12.43 KiB) Downloaded 126 times
notgreat
Cadet
 
Posts: 2
Joined: Fri Dec 02, 2011 8:38 am

Re: The open source your ant bot topic

Postby J.S.F. » Wed Dec 21, 2011 9:00 am

Here I will reveal my highly complex top secret battle algorithm.... drumroll please.....

zone = shapes.transform(new_loc, shapes.attack_radius, ants)
for enemy in zone.intersection(enemy_ants):
enemy_zone = shapes.transform(enemy, shapes.attack_plus, ants)
his_crew = len(zone.intersection(enemy_ants))
my_crew = len(enemy_zone.intersection(my_ants_set))
if (his_crew >= my_crew):
score = score - PENALTY

## These last 2 lines are key so I'll repeat them:

## if (his_crew >= my_crew):
## score = score - PENALTY
J.S.F.
Lieutenant
 
Posts: 16
Joined: Sun Dec 04, 2011 7:50 pm

PreviousNext

Return to Strategy

Who is online

Users browsing this forum: No registered users and 3 guests

cron