Lol, no C++.

Come in here to talk about your sky-net style world-destroying super bots!

Moderator: Defcon moderators

Th3xpl0iT
level1
level1
Posts: 17
Joined: Wed May 19, 2010 5:31 pm

Lol, no C++.

Postby Th3xpl0iT » Fri May 21, 2010 12:14 am

I noticed there aren't a lot of bots written in C++. Why is that?
User avatar
xander
level5
level5
Posts: 16866
Joined: Thu Oct 21, 2004 11:41 pm
Location: Riverside, CA, USA
Contact:

Postby xander » Fri May 21, 2010 2:18 am

Because other languages, such as Lua, are easier to work with. They do not require compiling, and are less strict with variable types, for instance.

xander
User avatar
ChemicalRascal
level1
level1
Posts: 72
Joined: Fri Feb 19, 2010 12:55 pm

Postby ChemicalRascal » Fri May 21, 2010 5:43 am

However, by coding in a language other than C or C++, you're opening yourself up for issues, as the system is (arguably) more complicated, and that you're using a third-party's work, you've no guarantee that everything is going to work perfectly.

That said, the rapid prototyping that Lua offers, as well as the quality of Luabot (though, in my opinion, if he had commented his code more it might have made my job a bit easier, but that's irrelevant) does maximise the pros and minimise the cons of using the scripting language.
Th3xpl0iT
level1
level1
Posts: 17
Joined: Wed May 19, 2010 5:31 pm

Postby Th3xpl0iT » Fri May 21, 2010 11:59 pm

Thanks for the great answers, that answers my question. This can be locked now.

Return to “AI Bots”

Who is online

Users browsing this forum: No registered users and 1 guest