# Zones
Your code will probably need to look for different markers depending on the zone your robot starts in. Whilst you could have different files for each zone, there's also a property on the robot object for this.
# Python
R.zone
will be equal to the the start zone of the robot, and will be equal to one of the teams.
Team | Code |
---|---|
Leon | robot.TEAM.LEON |
Zhora | robot.TEAM.ZHORA |
Pris | robot.TEAM.PRIS |
Roy | robot.TEAM.ROY |
Here's an example:
import robot
R = robot.Robot()
if R.zone == robot.TEAM.LEON:
print("Do something!")
else:
print("Do something else!")
# Blockly
You can find the zone block in the Movement section.