Exemplo n.º 1
0
 public override void OnWin(WinEvent evnt)
 {
     TurnRight(180);
     Ahead(10);
     TurnLeft(180);
     Ahead(-10);
     Out.WriteLine("Gane lero lero :P");
 }
Exemplo n.º 2
0
 public override void OnWin(WinEvent e)
 {
     for (int i = 0; i < 10; i++)
     {
         TurnRight(30);
         TurnLeft(30);
         Fire(Rules.MAX_BULLET_POWER);
     }
 }
Exemplo n.º 3
0
 public void OnWinBehavior(WinEvent evnt)
 {
     Robot.TurnLeft(25);
     for (int i = 0; i < 10; i++)
     {
         Robot.TurnRight(50);
         Robot.TurnLeft(50);
     }
     Console.WriteLine("All your bots are belong to us");
 }
Exemplo n.º 4
0
 public override void OnWin(WinEvent e)
 {
     Out.WriteLine("Win!");
 }
Exemplo n.º 5
0
 public void OnWin(WinEvent evnt)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 ///   onWin:  Do a victory dance
 /// </summary>
 public override void OnWin(WinEvent e)
 {
     for (int i = 0; i < 50; i++)
     {
         TurnRight(30);
         TurnLeft(30);
     }
 }
Exemplo n.º 7
0
 /// <inheritdoc />
 public virtual void OnWin(WinEvent evnt)
 {
 }
Exemplo n.º 8
0
 public void OnWin(WinEvent evnt)
 {
 }
Exemplo n.º 9
0
 public void OnWinBehavior(WinEvent evnt)
 {
     //The Sprinkler
     for (var j = 5; j < 1000; j++)
     {
         Robot.TurnLeft(j);
         Robot.TurnRight(j * 1.5);
     }
 }
Exemplo n.º 10
0
 public override void OnWin(WinEvent e)
 {
     // Victory dance
     TurnRight(36000);
 }
Exemplo n.º 11
0
        public void OnWin(WinEvent evnt)
        {
            count(evnt);

            // this is tested output
            foreach (KeyValuePair<string, object> s in counts)
            {
                Out.WriteLine(s.Key + " " + s.Value);
            }

            Out.WriteLine("last bullet heading " + bullet.HeadingRadians.ToString("F5"));
        }
Exemplo n.º 12
0
 public override void OnWin(WinEvent evnt)
 {
     RobotBehavior.OnWinBehavior(evnt);
 }
Exemplo n.º 13
0
 public override void OnWin(WinEvent evnt)
 {
     PrintStats();
 }
Exemplo n.º 14
0
 public override void OnWin(WinEvent evnt)
 {
     publisher.publish(evnt);
 }
Exemplo n.º 15
0
 public void OnWinBehavior(WinEvent evnt)
 {
     //throw new NotImplementedException();
 }
Exemplo n.º 16
0
 public void OnWinBehavior(WinEvent evnt)
 {
     Robot.TurnGunLeft(double.MaxValue);
     Console.WriteLine("All your bots are belong to us");
 }