Example #1
0
 public override void OnWin(WinEvent evnt)
 {
     TurnRight(180);
     Ahead(10);
     TurnLeft(180);
     Ahead(-10);
     Out.WriteLine("Gane lero lero :P");
 }
Example #2
0
 public override void OnWin(WinEvent e)
 {
     for (int i = 0; i < 10; i++)
     {
         TurnRight(30);
         TurnLeft(30);
         Fire(Rules.MAX_BULLET_POWER);
     }
 }
Example #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");
 }
Example #4
0
 public override void OnWin(WinEvent e)
 {
     Out.WriteLine("Win!");
 }
Example #5
0
 public void OnWin(WinEvent evnt)
 {
 }
Example #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);
     }
 }
Example #7
0
 /// <inheritdoc />
 public virtual void OnWin(WinEvent evnt)
 {
 }
Example #8
0
 public void OnWin(WinEvent evnt)
 {
 }
Example #9
0
 public void OnWinBehavior(WinEvent evnt)
 {
     //The Sprinkler
     for (var j = 5; j < 1000; j++)
     {
         Robot.TurnLeft(j);
         Robot.TurnRight(j * 1.5);
     }
 }
Example #10
0
 public override void OnWin(WinEvent e)
 {
     // Victory dance
     TurnRight(36000);
 }
Example #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"));
        }
 public override void OnWin(WinEvent evnt)
 {
     RobotBehavior.OnWinBehavior(evnt);
 }
 public override void OnWin(WinEvent evnt)
 {
     PrintStats();
 }
Example #14
0
 public override void OnWin(WinEvent evnt)
 {
     publisher.publish(evnt);
 }
 public void OnWinBehavior(WinEvent evnt)
 {
     //throw new NotImplementedException();
 }
Example #16
0
 public void OnWinBehavior(WinEvent evnt)
 {
     Robot.TurnGunLeft(double.MaxValue);
     Console.WriteLine("All your bots are belong to us");
 }