V5 Python Freeze Tag

Hello All,

First time having my students try to play freeze tag. We are using V5 robots and VEXcode Python. I honestly have never programmed anything like this and usually learn as I go and from the kids. However, I am almost 8 months pregnant and my brain just isn’t working on this one. Whenever I try to search for an example I just get IQ and it’s not helping me.

Here is an example of one students code that is not working. Does anyone have suggestions for it or an example of code that works? With timeout of with the robot shutting down completely, as long as I can see the gist of the program it will help. Also how to write to the robot brain.

Thanks all!

it just says bumper_a.pressing not if bumper_a.pressing. Try using an if statement. Also you can have a variable that you set to true once the button is pressed and the you can have a while loop where the condition is !that variable where you have you driver code. If that doesn’t work could you submit the entire code and elaborate on what “not working” is.

bumper_a.pressing() is not a command, it is a query for the robot to detirmine, in this case it will return True or False, and should be used in an if statement. To print to the screen, use the command brain.screen.print(“Hello World”)