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.

2D All the way! / probably simple question

Author
Message
AluminumPork
20
Years of Service
User Offline
Joined: 28th Oct 2003
Location: Duluth, MN, USA
Posted: 23rd Nov 2003 07:06
I was trying to figure out a way to take an array of numbers and pick out the biggest or smallest. Anyone have a function for something like this? I know it's probably simple, but am just waaay too tired right now to think about numbers . Any help greatly appreciated. The question is for the AI I'm improving so the computer picks out the closest ball and goes for that one instead of a completely random one which could end up being the stupid one.
AluminumPork
20
Years of Service
User Offline
Joined: 28th Oct 2003
Location: Duluth, MN, USA
Posted: 23rd Nov 2003 08:32
oops, nevermind, i decided to start thinking numbers and figured it out right away! It looks like this:

Login to post a reply

Server time is: 2024-05-08 14:09:19
Your offset time is: 2024-05-08 14:09:19