SRL Archive - Unofficial Development

Developing a bot: What programming language to use?


RealisticBot

2014-10-31 16:43:45

I Tought about making a bot that records my behaviour in game and then basically imitates my behaviour in game.

How long would developing such a bot take and what language should I use?

NKN

2014-10-31 16:49:27

A mouse recorder?

I wouldn't use one of those.

KeepBotting

2014-10-31 17:01:34

So you want to make a/an

-client (SMART)
-api (SRL)
-engine (Simba)

all for the purposes of recording & playing back your behaviour? Not worth it. Just use Simba, we're the best anyway

Clarity

2014-10-31 17:04:15

Wait a few weeks for biometrics to come out :)

Hoodz

2014-10-31 17:31:43

From: Clarity
Wait a few weeks for biometrics to come out :)


no finish dung

Brandon

2014-10-31 18:41:15

Best language for AI? No such thing as "best" but you can make life easier using one of the following (most commonly used languages for AI other than what's on Wiki):

1. Lisp (best option IMO)
2. Haskel
3. Prolog
4. C or C++
5. Matlab (maybe.. mostly for maths and statistics.. can also use "R" language)

From Wiki:

1. IPL (made specifically for AI)
2. Lisp
3. Prolog
4. STRIPS (dunno what this is..)
5. Planner (dunno about this one either)
6. Pop-11 (like pascal + lisp)

masterBB

2014-10-31 18:55:05

From: Brandon
Best language for AI? No such thing as "best" but you can make life easier using one of the following (most commonly used languages for AI other than what's on Wiki):


Just wondering,languages like Lisp and Haskell are not commonly used by new programmers, and aren't easy to read imo. Do these languages really make life that much easier as a more expresive/familiar language. I can only think of having more related libraries as a pro?

Brandon

2014-10-31 19:09:14

From: masterBB
Just wondering,languages like Lisp and Haskell are not commonly used by new programmers, and aren't easy to read imo. Do these languages really make life that much easier as a more expresive/familiar language. I can only think of having more related libraries as a pro?


Yeah.. ancient languages, but there was a time when Lisp was actually the BEST language for AI for a very long time.. Symbolic programming was the reason. Lisp is still good for AI.. Would I choose it nowadays.. ehh.. maybe.. not. I'd probably choose a more modern language but Lisp is still good for AI.

It's actually good for solving hard problems: http://programmers.stackexchange.com/questions/60028/is-there-any-evidence-that-lisp-actually-is-better-than-other-languages-at-artif

I guess it's my first choice right now because that's what I had to use..

http://www.zdnet.com/blog/burnette/hungarian-lisp-developer-walks-away-with-google-ai-contest/2131

That was in 2010.. so it's 4 years late but I still say it's good. Maybe not for new developers at all (so you are right). The syntax really is annoying but you get over it ;]

I'd probably just choose C since it's just as good but can get annoying. R for statistics or Matlab. What would you choose?

KeepBotting

2014-10-31 19:45:03

From: Brandon
Best language for AI? No such thing as "best" but you can make life easier using one of the following (most commonly used languages for AI other than what's on Wiki):

1. Lisp (best option IMO)
2. Haskel
3. Prolog
4. C or C++
5. Matlab (maybe.. mostly for maths and statistics.. can also use "R" language)

From Wiki:

1. IPL (made specifically for AI)
2. Lisp
3. Prolog
4. STRIPS (dunno what this is..)
5. Planner (dunno about this one either)
6. Pop-11 (like pascal + lisp)


Strips is an action language, as opposed to a programming language. It's usually used to specify the effects of state-transition systems (read: AI).

Planner is an old (almost as old as pascal) language that iirc functions by way of chaining.

masterBB

2014-10-31 20:14:22

From: Brandon
What would you choose?


Thank you for your explanation. I agree with that second link. Syntax is really what put me off.

Well I am not really a programmer, so I would stick to the languages I already know(which is limited). Either c++ or c#.

Incurable

2014-10-31 20:25:38

For what it's worth, my programming professor does robotics and AI research and his favourite language is Haskell. He uses it absolutely every chance he gets and he uses it for AI afaik.

Cheddy

2014-11-01 08:38:48

I'd say the best way about this is to make a java client and use reflection on the rs gamepack to analyse what you are doing. Although the likes of C may be faster than java for AI I believe that the features in java that allow it to monitor runescape and your activity outmatches the speed of C or C++. That would be how I'd do it anyways :-)