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


Messages In This Thread
Challenge: Creating AI that can "learn" through pr - by relsoft - 10-17-2003, 12:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)