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