It is currently Sat May 25, 2013 11:07 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 ifdef » Wed Dec 28, 2011 12:37 pm

My final rank is 100. Language: C#

Profile: http://aichallenge.org/profile.php?user=536

Source:
AIChallenge_07.12_1.zip
(9.67 KiB) Downloaded 112 times

You can find some comments in russian there ;)
ifdef
Cadet
 
Posts: 1
Joined: Wed Dec 28, 2011 12:31 pm

Re: The open source your ant bot topic

Postby UncleVasya » Thu Dec 29, 2011 2:27 pm

Yet another one source code:

Bot name: Oleg_Ovcharenko
Profile: http://aichallenge.org/profile.php?user=53
Rank: 42
Language: OCaml
Code size: 1153 + 1162 lines

I've spent some time to comment well MyBot.ml before sharing with you (yep, there are really a lot of comments). But was too lazy to document Ants.ml.
-----------------------------------------------------------------------------------------------------------------------------------------------------

My bot has usual functionality for top 100 member with small deviations:
  • Search implemented via BFS. No max ply

  • Battle implemented via Minimax. Full calculation for battles with <5 enemy ants; else considering only few type of enemy moves. No awareness about non-battle targets (except steping on hills). Score function depends on situation and has only 2 modes: my ants cheaper than enemy and vice versa

  • Strategy flow: solving battles ---> hills defense ---> food & hills gathering (1 ant for each) ---> hills gathering (1 ant for each) ---> internal & external boundary (1 ant for each) ---> first enemy hill haunting (many ants) ---> external boundary (rest of ants) ---> enemy ants haunting ---> battles support

  • Timing: between 500 and 200 ms left - solving battles; between 200 and 65 ms left - rest of stuff;

Attachments
UncleVasya_commented.zip
(82.56 KiB) Downloaded 77 times
User avatar
UncleVasya
Lieutenant
 
Posts: 17
Joined: Wed Jun 01, 2011 9:10 pm
Location: Ukraine

Re: The open source your ant bot topic

Postby andermall » Wed Oct 24, 2012 6:48 pm

someone has a bot in pascal plz.

sorry my english. =D
andermall
Cadet
 
Posts: 1
Joined: Tue Oct 23, 2012 8:39 pm

Re: The open source your ant bot topic

Postby UncleVasya » Fri Oct 26, 2012 8:36 am

As I remember no sources for pascal bots were shared.
I'll try to contact Murashka's creator (best pascal bot, rank 15: http://aichallenge.org/profile.php?user=3186)
User avatar
UncleVasya
Lieutenant
 
Posts: 17
Joined: Wed Jun 01, 2011 9:10 pm
Location: Ukraine

Re: The open source your ant bot topic

Postby NiveusPrime » Fri Oct 26, 2012 3:18 pm

UncleVasya wrote:As I remember no sources for pascal bots were shared.
I'll try to contact Murashka's creator (best pascal bot, rank 15: http://aichallenge.org/profile.php?user=3186)

Be my guest Murashka
Best pascal bot is SDil_ rank 13
Ants bot:Murashka
NiveusPrime
Lieutenant
 
Posts: 13
Joined: Wed Nov 02, 2011 7:04 pm

Previous

Return to Strategy

Who is online

Users browsing this forum: No registered users and 1 guest

cron