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.

Newcomers DBPro Corner / Need help with 'program memory'

Author
Message
Xlimun
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 7th May 2003 00:50 Edited at: 7th May 2003 03:29
Hi there, I just downloaded the DB 'classic' demo and have just whipped up this little program:

edit/ It's in the source code tab.


:As you can probably work out, it plots an item on the screen and then dots are randomly sent out to look for it.

Question is, how do I make it so the program remembers where it has already sent a dot and doesn't go back next time round?

(I think I explained it properly)

-Any help?

This little program is hopefully going to be the start of my 'learning' program which is going to be part of my main experiment, which is COMPUTER CONSCIOUSNESS.

Mwa hahahaha ha!

Try not to become a man of success, but rather try to become a man of value.
--Albert Einstein
Xlimun
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 7th May 2003 17:30
What, no help? Why you crummy bastards. I'm not going to lt you into the secret of the most advanced AI you have ever seen in you life...uh, hang on. I think I can see Sarah O'Connor out of my window...What the hell is...Oh shit.


Try not to become a man of success, but rather try to become a man of value.
--Albert Einstein
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 7th May 2003 21:30
You could use an array.
Xlimun
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 8th May 2003 02:19
Thankyou much.

Try not to become a man of success, but rather try to become a man of value.
--Albert Einstein
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 8th May 2003 02:25
You already have details of where you plotted your dots - on the screen/bitmap.

You can use the POINT function to read the colour - if it's blank, you've not been there yet.

If you are worried about the speed (or lack of) when using point, then you should try wrapping the dot/point code with LOCK PIXELS/UNLOCK PIXELS.

Login to post a reply

Server time is: 2024-11-24 13:56:47
Your offset time is: 2024-11-24 13:56:47