/**
 * Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://robocode.sourceforge.net/license/epl-v10.html
 */
package tested.robots;


import robocode.AdvancedRobot;


/**
 * This test robot is based on Eric Simonton's 3 caveats on the RoboWiki
 * where Robocode did not work as expected when updating the robot movements
 * with deceleration. 
 *
 * @author Flemming N. Larsen (original)
 */
public class DecelerationCaveat3 extends AdvancedRobot {

	@Override
	public void run() {
		setAhead(100);
		for (int i = 1; i <= 8; i++) {
			execute();
		}

		setAhead(-200);
		setMaxVelocity(7);
		execute();
	}
}
