コード例 #1
0
ファイル: Demoledor.cs プロジェクト: rlamunoz/DotNetRobocode
 public override void OnWin(WinEvent evnt)
 {
     TurnRight(180);
     Ahead(10);
     TurnLeft(180);
     Ahead(-10);
     Out.WriteLine("Gane lero lero :P");
 }
コード例 #2
0
ファイル: Sherman.cs プロジェクト: rlamunoz/DotNetRobocode
 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
ファイル: Tracker.cs プロジェクト: Inzaghi2012/robocode
 /// <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
ファイル: Robot.cs プロジェクト: EamonnACI/ACI-SpaceRace
 /// <inheritdoc />
 public virtual void OnWin(WinEvent evnt)
 {
 }
コード例 #8
0
ファイル: JuniorRobot.cs プロジェクト: khangnguyen/robocode
 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
ファイル: TrackFire.cs プロジェクト: Inzaghi2012/robocode
 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);
 }
コード例 #13
0
 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");
 }