Smart movement keeps your bot alive.
Try mixing circles and zigzags to dodge bullets:
public void onScannedRobot(ScannedRobotEvent e) {
setTurnRight(e.getBearing() + 90);
if (Math.random() > 0.5) {
setForward(150);
} else {
setBack(150);
}
}
Changing direction unpredictably makes your tank harder to hit. Combine this with wall smoothing from earlier lessons.