/**
 * 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
 */
using Robocode;

namespace tested.robotscs
{
    public class BattleLost : Robot
    {
        public override void Run()
        {
            while (true)
            {
                Ahead(1); // Move ahead 100
                TurnGunRight(360); // Spin gun around
                Back(1); // Move back 100
                TurnGunRight(360); // Spin gun around
            }
        }


        public override void OnWin(WinEvent e)
        {
            Out.WriteLine("Win!");
        }

        public override void OnDeath(DeathEvent e)
        {
            Out.WriteLine("Death!");
        }

        public override void OnBattleEnded(BattleEndedEvent evnt)
        {
            Out.WriteLine("BattleEnded!");
        }
    }
}