Lets say after 10 iterations or diving, the robot catched the ball. You need to stop the iterator. I guess you add a new feature and test for it in that for loop?
Also this is a toy example - can you show example of real code? handling many states?
Reply
Contact
Email
colin@colinm.org
Lab
Wean Hall 1302
(412) 268-2601
Office
Wean Hall 1307
(412) 268-4751
Snail Mail
Colin McMillen
Carnegie Mellon Univ.
Computer Science Dept.
5000 Forbes Avenue
Pittsburgh, PA 15213
U.S.A.
And what happen when the robot catched the ball?
Lets say after 10 iterations or diving, the robot catched the ball. You need to stop the iterator. I guess you add a new feature and test for it in that for loop?
Also this is a toy example - can you show example of real code? handling many states?