Ants

All non-Go discussions should go here.
User avatar
perceval
Lives in gote
Posts: 312
Joined: Thu Aug 05, 2010 3:35 am
Rank: 7K KGS
GD Posts: 0
KGS: tictac
Has thanked: 52 times
Been thanked: 41 times

Re: Ants

Post by perceval »

Dusk Eagle wrote:Wow. Good job so far phrax! (Currently ranked 31st overall).

indeed good job !

all good bots seems to have certain type of movment absent in weaker bots, a kind of jitter, and it involes much more small skirmishes 2vs 1 or 3 vs 1 that with weaker bots which typically rsuh toward the nearest hill; i must say that my bot does that for now :scratch:
In theory, there is no difference between theory and practice. In practice, there is.
phrax
Dies with sente
Posts: 92
Joined: Wed Apr 21, 2010 10:24 am
GD Posts: 0
Has thanked: 48 times
Been thanked: 6 times

Re: Ants

Post by phrax »

Thanks. I'm pretty psyched. Now if I can just figure out how to stop timing out without handicapping myself too much... I really hate these Mickey Mouse time-limits :)
User avatar
daniel_the_smith
Gosei
Posts: 2116
Joined: Wed Apr 21, 2010 8:51 am
Rank: 2d AGA
GD Posts: 1193
KGS: lavalamp
Tygem: imapenguin
IGS: lavalamp
OGS: daniel_the_smith
Location: Silicon Valley
Has thanked: 152 times
Been thanked: 330 times
Contact:

Re: Ants

Post by daniel_the_smith »

phrax wrote:Thanks. I'm pretty psyched. Now if I can just figure out how to stop timing out without handicapping myself too much... I really hate these Mickey Mouse time-limits :)


Well, you can't blame your language! Good job, btw.
That which can be destroyed by the truth should be.
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com
phrax
Dies with sente
Posts: 92
Joined: Wed Apr 21, 2010 10:24 am
GD Posts: 0
Has thanked: 48 times
Been thanked: 6 times

Re: Ants

Post by phrax »

daniel_the_smith wrote:
phrax wrote:Thanks. I'm pretty psyched. Now if I can just figure out how to stop timing out without handicapping myself too much... I really hate these Mickey Mouse time-limits :)


Well, you can't blame your language! Good job, btw.


Heh, true. I'm more of a Perl guy. I had played with A* using Perl and the performance was awful (although that could've been me). It was at that point I realized I needed to get more raw; it seems to have worked out well for me so far.. Well, besides all the time I take tracking down memory issues now :)
lorill
Lives with ko
Posts: 281
Joined: Wed Apr 21, 2010 1:03 am
Rank: yes
GD Posts: 0
Location: France
Has thanked: 69 times
Been thanked: 25 times

Re: Ants

Post by lorill »


nice :bow:

daniel> sorry for the last game ;)
jbergmark
Beginner
Posts: 6
Joined: Tue Apr 05, 2011 7:59 am
Rank: DGS 22k
GD Posts: 0
KGS: jbergmark
Has thanked: 1 time
Been thanked: 1 time

Re: Ants

Post by jbergmark »

I'm giving this a shot as well:

http://aichallenge.org/profile.php?user=8810

The bot above is in Ruby, but I think I've hit the limit of what I can do in Ruby given the time limits involved (#2 Ruby bot, so I don't think I'm alone in this regard). I've rewritten it in java, and its MUCH faster, but I hesitate to upload again and reset my ranking before I make some measurable improvements.
User avatar
daniel_the_smith
Gosei
Posts: 2116
Joined: Wed Apr 21, 2010 8:51 am
Rank: 2d AGA
GD Posts: 1193
KGS: lavalamp
Tygem: imapenguin
IGS: lavalamp
OGS: daniel_the_smith
Location: Silicon Valley
Has thanked: 152 times
Been thanked: 330 times
Contact:

Re: Ants

Post by daniel_the_smith »

Somehow my bot seems to have joined lorill and phrax in the top 100! #69 right now...

(It won't last, I just had an incredibly lucky win...)
That which can be destroyed by the truth should be.
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com
AVAVT
Dies in gote
Posts: 32
Joined: Fri Oct 29, 2010 12:18 pm
Rank: KGS 1 dan
GD Posts: 0
KGS: AVAVT
Has thanked: 10 times
Been thanked: 1 time

Re: Ants

Post by AVAVT »

Gahh I think I'm at my wit's end with the things I know now. :scratch:
Really hope I can get my butt in the top 100 before the final tournament, but before that I must do something with my food gathering strategy... right now all that I'm employing can be described as: "OMG FOOD!!!!" :-?

Btw personally I don't... think the way most top players employing local combat and that movement are really that good. I don't even have nearly enough skill to make a bot like that, but I think if the Monte carlo simulation tells you to bounce back and forth in front of the enemy's hill for 500 turns when your force is 10 times their number, then you're doing something fundamentally wrong.
I myself saw a player in the top 20 employing kamikaze strategy and it worked well in the game I saw(sorry forgot who), and I think the reason xathis is currently 4 points above rank 2nd is because when his ants are overwhelming, he sometime just finish it.

Well that's just some bitching from a lowling though, I gotta get my a** into the top 100 to have any saying at all T_T
lorill
Lives with ko
Posts: 281
Joined: Wed Apr 21, 2010 1:03 am
Rank: yes
GD Posts: 0
Location: France
Has thanked: 69 times
Been thanked: 25 times

Re: Ants

Post by lorill »

daniel_the_smith wrote:Somehow my bot seems to have joined lorill and phrax in the top 100! #69 right now...

(It won't last, I just had an incredibly lucky win...)

I went up to 18th, but it went back to a more reasonnable 33th for now.
User avatar
flOvermind
Lives with ko
Posts: 295
Joined: Wed Apr 21, 2010 3:19 am
Rank: EGF 4 kyu
GD Posts: 627
Location: Linz, Austria
Has thanked: 21 times
Been thanked: 43 times

Re: Ants

Post by flOvermind »

AVAVT wrote:[...] bounce back and forth in front of the enemy's hill for 500 turns when your force is 10 times their number, then you're doing something fundamentally wrong.


Yes and no.

I have noticed that it is sometimes really possible to indefinitely block certain paths. That is, the defender can place a few ants in a way so the attacker can not make any progress. That is, every attacking ant that tries to enter the controlled zone immediately dies, but without killing any defender. In that kind of situation, where you are not even able to kill a single ant, it is irrelevant that you have 10 times as many forces.

But the problem lies elsewhere: In these situations, you don't really need 10 times as many forces to hold the line. That is, instead of trying to attack with a huge blob of ants, you could just accept that you can't break through, leave only a few ants there to hold the line, and use all other ants for something else (like searching for a back entrance).
saraneth
Beginner
Posts: 2
Joined: Mon Mar 28, 2011 6:59 am
Rank: KGS 3 dan
GD Posts: 0
KGS: saraneth

Re: Ants

Post by saraneth »

Wow, this is cool! Have a starter bot up, and think I will try to implement a Go-esque strategy (there seem to be obvious parodies for territory, influence, thickness etc).
User avatar
perceval
Lives in gote
Posts: 312
Joined: Thu Aug 05, 2010 3:35 am
Rank: 7K KGS
GD Posts: 0
KGS: tictac
Has thanked: 52 times
Been thanked: 41 times

Re: Ants

Post by perceval »

i finally submitted something, i need input from some defeats to know where to improve . i might have been too cautions on time optimization:

i cache all ancestor graphs of all search i make, i restrict max depth of search etc.. in the end even with 200+ ants on a 200*200 map i run in less that 0.1 sec .. total pathfindinf time per turn is less than 10ms i goes to the point when the terrible input parsing of the java star package is noticeable ... and i was worried about java perf.

I could use extra time for more computation but computation of what ??
the game is also very different in maze vs more open map, i need to take that into account and alos balance exploring/food camping vs attacking. for now i send 80 % of my ants towards the nearest ennemy, its great to smash the starter bots but i expected issues against stronger ones :-? .

AVAVT wrote:Gahh I think I'm at my wit's end with the things I know now. :scratch:
Really hope I can get my butt in the top 100 before the final tournament, but before that I must do something with my food gathering strategy... right now all that I'm employing can be described as: "OMG FOOD!!!!" :-?


does that mean that only the top 100 will be enterd in to the tournament at mif december ?
In theory, there is no difference between theory and practice. In practice, there is.
User avatar
daniel_the_smith
Gosei
Posts: 2116
Joined: Wed Apr 21, 2010 8:51 am
Rank: 2d AGA
GD Posts: 1193
KGS: lavalamp
Tygem: imapenguin
IGS: lavalamp
OGS: daniel_the_smith
Location: Silicon Valley
Has thanked: 152 times
Been thanked: 330 times
Contact:

Re: Ants

Post by daniel_the_smith »

Perceval, the main server is a bit slow with the games. TCP servers are good if you want immediate feedback, e.g., http://ants.fluxid.pl --there's instructions up there...

Oh, and your bot looks pretty decent...
That which can be destroyed by the truth should be.
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com
User avatar
perceval
Lives in gote
Posts: 312
Joined: Thu Aug 05, 2010 3:35 am
Rank: 7K KGS
GD Posts: 0
KGS: tictac
Has thanked: 52 times
Been thanked: 41 times

Re: Ants

Post by perceval »

daniel_the_smith wrote:Perceval, the main server is a bit slow with the games. TCP servers are good if you want immediate feedback, e.g., http://ants.fluxid.pl --there's instructions up there...

Oh, and your bot looks pretty decent...

yeah thanks i need to try the tcp servers.
Yes my bot looks decent but obviously over aggresive and he plays too thin. I developped it against hunterbot after all and its strategy is to have its ant spreads as much as possible. Not so good when other bots knows what they do: my third game today is a good example; hopefully it will be easy to tweak.
Looking at the bots my current goal is to enter the top 200 or 300 but i don t think this version will make it
In theory, there is no difference between theory and practice. In practice, there is.
User avatar
daniel_the_smith
Gosei
Posts: 2116
Joined: Wed Apr 21, 2010 8:51 am
Rank: 2d AGA
GD Posts: 1193
KGS: lavalamp
Tygem: imapenguin
IGS: lavalamp
OGS: daniel_the_smith
Location: Silicon Valley
Has thanked: 152 times
Been thanked: 330 times
Contact:

Re: Ants

Post by daniel_the_smith »

perceval wrote:Looking at the bots my current goal is to enter the top 200 or 300 but i don t think this version will make it


I'm a little miffed that my current entry is better with its bugs than without. It got above 50 so I don't feel too bad that I can't beat it yet, though.

saraneth, good luck, added you to the first post...

Is anyone on 64 bit linux and interested in a binary exchange? (i.e., we trade binaries for local testing...)
That which can be destroyed by the truth should be.
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com
Post Reply