Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / [LOCKED] Dark Dragon's Artifical Intelligence Tutorial

Author
Message
Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 17th Jul 2007 19:16 Edited at: 17th Jul 2007 19:21
Hey Guys,
I personally have struggled with AI for A LONG time and have figured it out to the point where I could explain it in 2 steps. Here Goes:

The first step in coming up with AI is to get a rough working routine. Even if it is nothing but a simple switch(RND(4)).

The Second Step, Test the game against the AI and Look at how it makes it's moves. Wait until it does something stupid, then go back and change whatever it was to something you would have done. Reapeat this Process and your AI will start to get better and better at the game.




another type of AI is to have the AI check the distance from the player to the "Bot". This technique has been called the "advanced switch system".
Here is an example:

(sprite 2 is the bot)
I will add more to this section upon request.

TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 17th Jul 2007 20:36
This is not a tutorial and doesn't really teach anyone anything.

As such, it's only going to attract flames - and users telling you what I just did, but not quite as politely!

So, it's best to lock this now - to save everyone the time and effort...

TDK_Man

Login to post a reply

Server time is: 2026-07-06 14:16:56
Your offset time is: 2026-07-06 14:16:56