The case you're looking for would look something like this:
for i inxrange(30):
if features.caughtBall:
yield'stand'
break
else:
yield command
I don't have an example of "real" code to show yet. As I said above, I've not started to try reimplementing all our old behaviors in the new system, but there's no technical reason why this approach won't work. Perhaps I'll make another post when I have something more complex ready.
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.
Making things more complicated
The case you're looking for would look something like this:
I don't have an example of "real" code to show yet. As I said above, I've not started to try reimplementing all our old behaviors in the new system, but there's no technical reason why this approach won't work. Perhaps I'll make another post when I have something more complex ready.