Im new so some questions:
When you have an ai, do you program things with brute force?
ie:
if(_x < myx) myx--;
else if(_x > myx) myx++;
?
Should i put random(number) and put that in a switch statement and do things according to the result?
Or do i use something like a for statement? how do you "Code" something to be "smart"?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement