Quote:
|
Originally Posted by HHSJosh
Would it be poswsible to use multithreading to allow for each of the four robots to think at once?
|
Theoretically. I'd really like to, however, refering to my "I don't know CS very well yet" thing: at least what I've read so far, you actually have to call a certain function which is part of CS. This function then takes control of program flow, and the only way I currently know of when it gives it back to you is when a key is pressed. There must be other ways to get it, I just don't know them yet. Using multithreading, we could always initialize the robot threads before giving CS control of the parent thread. The only thing we'd have to figure out then is how to tell CS what the updated positions are. Hopefully that's not hard...
==EDIT==
Oh, yeah. This was to make you stay our of our discussion...
jk