Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge: Creating AI that can "learn" through pr
#11
Quote:I dont think select case would work here.

Code:
GGB = INT(RND * BI) + 1    ' AVOIDING BAD BASED ON BAD INTEL
IF GGB = 1 THEN
IF A > BA - 7 THEN A = A - 1     'its these 4 troublesome lines
IF A < BA + 7 THEN A = A + 1
IF B > BB - 7 THEN B = B - 1
IF B < BB + 7 THEN B = B + 1
END IF

its all the IF statements, regarding position of each co-ordinates.
for example, if the A coordinate is more than the enemy minus a bit, IE to his left, then go left until you are no longer in that area.

at least thats the way my mind calculates it.

Case is >BA-7
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#12
I think to let a program learn you have to start with some 'world' rules which are constant. For example the cpu tries to eat everything which he sees for the 1st time. And if that failes he tries to use it for other things. So there must be some rules set up for the items too... hmm well just some thoughts.

It might also be an idea, to let the computer save the experiences in an outputted file, so it loads up the file and restore his experiences(or the things learned) again.

(play the game Creatures, it got some extensive AI in it)
Reply
#13
lol when i changed the ifs to selectcases he would run to a corner and get stuck...
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#14
Ya barok i tried making a chat program wich used premade sentences and the MID function. i had to give the user certain rules like "if your asking a question then put a ? at the end". It was funny becuase i only got about 1/4 of the way done and then i realized that it was useless.

PS. i dont think a computer can ever be "aware of itself" or "Aware of its workings"
pen your other eyes.........
Reply
#15
omg omg omg... someone give me strength... YOU REVIVED AN OLD TOPIC! that's punishable by death. we'll have to burn him at stake. or maybe we'll hang him. or chop off his head.

seriously though, don't revive old posts. if you want to say something to me, pm me.
Jumping Jahoolipers!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)