|
Re: the main code
The while loop continues to loop while the condition in the () remains true. It is checked at the beginning of the loop. (There is another kind of while loop that checks at the end of the loop.)
So a while(true) -- or a while(1) -- or a while (1==1) -- continues forever until an outside condition stops it, such as the field gets turned off at the end of a match, or something inside the loop jumps out of the loop (not likely). It's a simple way of letting your code run forever until you turn it off.
|