Forum :: Mods :: Release: bot_cobra

Sign In

You must sign in to post.

Release: bot_cobra :: May 21, 2007 @ 5:47pm

Ensign thirdparty

Joined: Dec 20, 2006
Posts: 279
Location: Eastern U.S.A.

[edit: I've removed my Cobra display mod.  You can find the latest version of Cobra in my Symmetry mod.]

Cobra is a complicated (and unfortunately rather processor-intensive) bot intended for one-on-one's.  It grabs a few neutral planets and then smoothly transitions into an aggressive, full-scale attack.  It knows how to redirect ships, which can make defense an attention-consuming proposition.

Although it's not Admiral-caliber, it does crush the classic Bot.  (Which is more than I can say for the first two bots I tried to make.  It's surprisingly hard to create a half-decent bot.)  If nothing else, fending it off is good practice.

The included "thirdbots.py" library also has two other bots: Bot, the classic bot from the examples, and Lass, a variant of the classic bot which uses the same basic strategy but reinforces itself when attacked and will occasionally snatch nearby freebies.  All three included bots allow an optional second argument which is the number of times they act per second: for example, if you want a Lass bot that acts once every two seconds, call "thirdbots.Bot_Lass(level, 0.5)".
 
post updated on May 30, 2007 @ 8:40am
Re: Release: bot_cobra :: May 22, 2007 @ 10:45am

Ensign philhassey

Joined: Nov 30, 2006
Posts: 765
Location: Zarcon

The bot totally whipped me - though I'm using a trackpad today, so I didn't have much of a chance anyway :) 

I'll check out the code later, I'm curious.   

One suggestion - when the bot has a clear lead, have it switch strategy to a "finishing" strategy where you just whipe out the players planets instead of taking over more good neutrals. 

Sometime soon I hope to get the in-game bots into the mods, so everyone can play with them.  And also set up a botwars mod where you can watch lots of "fast motion" games between a handful of bots :) 

Phil
Re: Release: bot_cobra :: May 22, 2007 @ 6:38pm

Ensign SirGnip

Joined: Dec 27, 2006
Posts: 59
Location: Chi-town

And also set up a botwars mod where you can watch lots of "fast motion" games between a handful of bots :)


I smell a modder-submitted bot tournament!  

Oh, and nice job, third!  I'm gonna toy with it more here in a bit...
Re: Release: bot_cobra :: May 24, 2007 @ 3:57pm

Ensign SirGnip

Joined: Dec 27, 2006
Posts: 59
Location: Chi-town

That was lotsa fun!  Playing cobra felt more like playing a human.  Having it redirect fleets added a nice touch (and challenge).  Also, in the UI, allowing the players to swap sides after a match was really classy.  Nice to be able to have some kind of reaction to "well, the bot just had a great starting cluster..."

I had a rough time beating it in most massive-ish maps (its ability to send large numbers of fleets quickly far surpassed mine). But, still very fun!
post updated on May 24, 2007 @ 3:57pm

You must sign in to post.

Galcon   Watermelons   Dynamite   The Hairy Chestival
All content of imitation pickles (c) 1999-2008 - Phil Hassey  "we care"