Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


AI programming


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 DK_L   Members   -  Reputation: 122

Like
Likes
Like

Posted 18 May 2000 - 08:35 AM

Hi, Can anybody tell how to write a simple AI source code?? Because I have no idea how it works... Thanks cu DK_L

Sponsor:

#2 Domini   Members   -  Reputation: 126

Like
Likes
Like

Posted 18 May 2000 - 08:55 AM

What is the AI going to be used for? What type of game/project? AI is inplemeted differently based on what it is for.

Domini

#3 SHilbert   Members   -  Reputation: 647

Like
Likes
Like

Posted 18 May 2000 - 09:45 AM

Very, very simple player-tracking code:


if(playerx < monsterx)
monsterx--;
if(playerx > monsterx)
monsterx++;
if(playery < monstery)
monstery--;
if(playery > monstery)
monstery++;


That''s a start... you probably get the idea that it''s mostly just if-this-do-that. Of course, there are higher-level things that are more abstract, like neural nets, but that''s a little too advanced for a simple example.

lntakitopi@aol.com | http://geocities.com/guanajam/




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS