http://robowiki.net/w/api.php?action=feedcontributions&user=Astacus&feedformat=atomRobowiki - User contributions [en]2024-03-28T13:05:19ZUser contributionsMediaWiki 1.34.1http://robowiki.net/w/index.php?title=Main_Page&diff=27340Main Page2012-11-05T06:14:31Z<p>Astacus: I didn't need to add another line for this</p>
<hr />
<div>{| style="width:100%; background:#e0e8ef; border:1px solid #999999; padding:.5em"<br />
|style="width:46%; color:#000"|<div align="center"><br />
{| style="width:280px; border:solid 0px #999999; background:none;"<br />
|style="width:280px; text-align:center; white-space:nowrap; color:#000;"|<br />
<div style="font-size:30px; border:none; margin:0; padding:.2em; color:#000;">Welcome to the RoboWiki</div><br />
<div style="font-size:16px;">''Collecting Robocode knowledge since 2003.''</div><br />
|}<br />
</div><br />
<br />
|style="width:19%; font-size:95%;"|<br />
* '''[[Robocode/Getting Started|Getting Started]]'''<br />
* '''[[:Category:Robocode Documentation|Documentation]]'''<br />
|style="width:16%; font-size:95%; color:#000;"|<br />
* '''[[:Category:Tutorials|Tutorials]]'''<br />
* '''[[:Category:Terminology|Terminology]]'''<br />
|}<br />
<br />
{|style="border-spacing:5px; margin:0px -5px;"<br />
|class="MainPageBG" style="width:57%; border:1px solid #999999; background:#ffffff; vertical-align:top; color:#000;"|<br />
{|width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#ffffff;"<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">What is Robocode?</h2><br />
|-<br />
|<br />
* '''[[Robocode]]''' is a programming game. It can be used to teach or learn programming in Java or [[Robocode/.NET/Create a .NET robot with Visual Studio|.NET]]. It can serve as a platform for exploring AI and machine learning techniques. Or it can be a competitive, addictive hobby that eats up all your time and CPU cycles.<br />
|-<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">Getting Started</h2><br />
|-<br />
|style="color:#000;"|<br />
* '''[[:Category:Robocode Documentation|Robocode Docs]]''': [[Robocode Download And Install|Download & Install]], [[Robocode/Getting Started|Start a Battle]], [[Robocode/My First Robot|My First Robot tutorial]], [[Robocode/FAQ|FAQ]], and lots more to get your feet wet.<br />
* '''[[Radar]]''', '''[[Movement]]''', and '''[[Targeting]]:''' The three basic components of any robot.<br />
* '''[[:Category:Tutorials|Tutorials]]''': Covering a wide range of topics, these tutorials will guide you along the way to your first competitive robot.<br />
* '''[[:Category:Terminology|Terminology]]''': Catchphrases around Robocode<br />
|-<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">Using the RoboWiki</h2><br />
|-<br />
|style="color:#000;"|<br />
* We do our best to make the RoboWiki a great reference for all levels of Robocoders. But it's also a strong and long-standing community of passionate and helpful people.<br />
** Check the <b>[[Special:RecentChanges|Recent Changes]]</b> to see current discussion and updates.<br />
** Please feel free to make pages for yourself and your bots. <br />
** Ask questions and read up on any of the Discussion tabs of each page.<br />
** Submit your bots to the [[RoboRumble]]<br />
** Follow [http://twitter.com/robowiki @robowiki] and [http://twitter.com/roborumble @roborumble] on Twitter. <br />
** Read [[RoboWiki:Guide for Articles|Guide for Articles]] for tips and tools for writing RoboWiki articles.<br />
** Let us know how we can improve the wiki - or contribute to it yourself!<br />
|-<br />
|}<br />
<br />
|class="MainPageBG" style="width:43%; border:1px solid #999999; background:#ffffff; vertical-align:top"|<br />
{| width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#ffffff;"<br />
<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:110%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.1em 0.4em;">RoboRumble</h2><br />
|-<br />
|style="color:#000; font-size:90%"|<br />
* '''[[RoboRumble]]''' is the primary competition for Robocode bots, with divisions for [[One-on-one|1v1]], [[Melee]], [[Teams]], and [[Twin Duel]], and subdivisions for [[MiniBots]], [[MicroBots]], and [[NanoBots]]. Also see [[LiteRumble]].<br />
** '''[[RoboRumble/Starting With RoboRumble|Starting With RoboRumble]]'''<br />
** '''[[RoboRumble/Enter The Competition|Enter The Competition]]'''<br />
** '''[http://darkcanuck.net/rumble Current Rankings]'''<br />
|-<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:110%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.1em 0.4em;">Challenges</h2><br />
|-<br />
|style="color:#000; font-size:90%"|<br />
* '''[[Movement Challenge 2K7]]''' - The latest MC hands you [[Raiko]]'s gun and tests your performance against basic, intermediate, and scary-good opponents.<br />
* '''[[Targeting Challenge RM]]''' - The current benchmark of a general purpose Robocode gun, this TC puts you up against all [[Random Movement]] bots from the previous TCs.<br />
* '''[[Anti-Surfer Challenge]]''' - It may not help you climb to the top of the [[RoboRumble]], but we still have fun trying to destroy [[Wave Surfing|wave surfers]] as best we can.<br />
* '''[[Rambot Challenge 2K6]]''' - Because [[Ramming Movement|ramming]] is fun.<br />
* '''[[:Category:Challenges|More Challenges]]''' - There's plenty more where those came from...<br />
|-<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:110%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.1em 0.4em;">External Links</h2><br />
|-<br />
|style="color:#000; font-size:90%"|<br />
* '''[http://robocode.sourceforge.net/ Robocode Website]'''<br />
* '''[http://old.robowiki.net Old RoboWiki (Archive)]'''<br />
* '''[http://robocoderepository.com/ Robocode Repository]'''<br />
* '''[[wikipedia:Robocode|Wikipedia entry for Robocode]]'''<br />
|-<br />
|}<br />
|}<br />
<br />
{|style="border-spacing:5px; margin:-5px -5px;"<br />
|class="MainPageBG" style="width:45%; border:1px solid #999999; background:#ffffff; vertical-align:top; color:#000;"|<br />
{|width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#ffffff;"<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:110%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.1em 0.4em;">A few robots worth checking out...</h2><br />
|-<br />
|style="color:#000; font-size:90%"|<br />
* '''[[Shadow]]''' - A former champ in both Melee and 1v1 and the current TeamRumble champ. This is one of the toughest bots you'll ever face. [[User:ABC|ABC]]'s Shadow has been crushing Robocoders with innovative new techniques, like [[Wave Surfing]] and [[Shadow/Melee Gun]], since long before most of us ever found this game.<br />
* '''[[DrussGT]]''' - The current [[RoboRumble]] champ in General 1v1, for almost 3 years now. A super strong [[Dynamic Clustering]] gun and one of the only bots using a [[Wave Surfing/GoTo Surfing|GoTo Wave Surfing]] movement. And it's [[Open Source]].<br />
* '''[[:Category:Super Sample Bots|Super Sample Bots]]''' - Once you've gotten past the [[:Category:Sample Bots|Sample Bots]] that come with Robocode, step up and test yourself against the Super Samples.<br />
* '''[[LunarTwins]]''' - [[Twin Duel]] is a 2v2 survivalist rule set, and LunarTwins has an in-your-face strategy that few teams know how to deal with.<br />
* '''[[PrairieWolf]]''' - An ancient [[Multi-Mode]] bot that's bound to give new Robocoders a healthy challenge.<br />
* '''[[BasicGFSurfer]]''' - The [[Wave Surfing Tutorial]] and [[GFTargetingBot]] provide great starting points for new Robocoders. Put the two together and you'll find yourself just outside the RoboRumble top-100.<br />
|-<br />
|}<br />
<br />
|class="MainPageBG" style="width:55%; border:1px solid #999999; background:#ffffff; vertical-align:top"|<br />
{| width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#ffffff;"<br />
<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">Development Tools</h2><br />
|-<br />
|style="color:#000"|<br />
* '''[[RoboResearch]]''' - Every serious Robocoder's best friend, this excellent utility helps you run loads of tests against your favorite test bed or run it through a [[:Category:Challenges|challenge]].<br />
* '''[[Robocode/Eclipse|Eclipse]]''' - Get Robocode setup with Eclipse, one of the most popular Java IDEs.<br />
* '''[http://robocode.sourceforge.net/docs/robocode/ Robocode API]''' - Not a "tool", per se, but you'll need to get familiar with it!<br />
* '''[[Robocode/Graphical Debugging|Graphical Debugging]]''' - Using Robocode's graphics support to draw on the battlefield can be a huge help in making sure your bot is doing and thinking what you expect it to.<br />
* '''[[Robocode/.NET/Create a .NET robot with Visual Studio|Visual Studio .NET]]''' - You can now create .NET Robocode bots, too.<br />
* '''[[Robocode/NetBeans/Configure|NetBeans]]''' - Prefer NetBeans to Eclipse? Here's a detailed guide to getting it setup with Robocode.<br />
* '''[[FloodGrapher]]''' - Graphing your bot's movement can offer a lot of insight into where you need to make improvements.<br />
* '''[[:Category:Utilities|Utilities]]''' - More tools to make your Robocoding easier and more productive.<br />
|-<br />
|}<br />
|}<br />
<br />
<br />
__NOTOC__ __NOEDITSECTION__</div>Astacushttp://robowiki.net/w/index.php?title=Main_Page&diff=27339Main Page2012-11-05T06:11:58Z<p>Astacus: Robocode/FAQ</p>
<hr />
<div>{| style="width:100%; background:#e0e8ef; border:1px solid #999999; padding:.5em"<br />
|style="width:46%; color:#000"|<div align="center"><br />
{| style="width:280px; border:solid 0px #999999; background:none;"<br />
|style="width:280px; text-align:center; white-space:nowrap; color:#000;"|<br />
<div style="font-size:30px; border:none; margin:0; padding:.2em; color:#000;">Welcome to the RoboWiki</div><br />
<div style="font-size:16px;">''Collecting Robocode knowledge since 2003.''</div><br />
|}<br />
</div><br />
<br />
|style="width:19%; font-size:95%;"|<br />
* '''[[Robocode/Getting Started|Getting Started]]'''<br />
* '''[[:Category:Robocode Documentation|Documentation]]'''<br />
|style="width:16%; font-size:95%; color:#000;"|<br />
* '''[[:Category:Tutorials|Tutorials]]'''<br />
* '''[[:Category:Terminology|Terminology]]'''<br />
|}<br />
<br />
{|style="border-spacing:5px; margin:0px -5px;"<br />
|class="MainPageBG" style="width:57%; border:1px solid #999999; background:#ffffff; vertical-align:top; color:#000;"|<br />
{|width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#ffffff;"<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">What is Robocode?</h2><br />
|-<br />
|<br />
* '''[[Robocode]]''' is a programming game. It can be used to teach or learn programming in Java or [[Robocode/.NET/Create a .NET robot with Visual Studio|.NET]]. It can serve as a platform for exploring AI and machine learning techniques. Or it can be a competitive, addictive hobby that eats up all your time and CPU cycles.<br />
|-<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">Getting Started</h2><br />
|-<br />
|style="color:#000;"|<br />
* '''[[:Category:Robocode Documentation|Robocode Docs]]''': [[Robocode Download And Install|Download & Install]], [[Robocode/Getting Started|Start a Battle]], [[Robocode/My First Robot|My First Robot tutorial]], and lots more to get your feet wet.<br />
* '''[[Radar]]''', '''[[Movement]]''', and '''[[Targeting]]:''' The three basic components of any robot.<br />
* '''[[:Category:Tutorials|Tutorials]]''': Covering a wide range of topics, these tutorials will guide you along the way to your first competitive robot.<br />
* '''[[:Category:Terminology|Terminology]]''': Catchphrases around Robocode<br />
* '''[[Robocode/FAQ|Robocode FAQ]]''': Your question about Robocode may already have been answered.<br />
|-<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">Using the RoboWiki</h2><br />
|-<br />
|style="color:#000;"|<br />
* We do our best to make the RoboWiki a great reference for all levels of Robocoders. But it's also a strong and long-standing community of passionate and helpful people.<br />
** Check the <b>[[Special:RecentChanges|Recent Changes]]</b> to see current discussion and updates.<br />
** Please feel free to make pages for yourself and your bots. <br />
** Ask questions and read up on any of the Discussion tabs of each page.<br />
** Submit your bots to the [[RoboRumble]]<br />
** Follow [http://twitter.com/robowiki @robowiki] and [http://twitter.com/roborumble @roborumble] on Twitter. <br />
** Read [[RoboWiki:Guide for Articles|Guide for Articles]] for tips and tools for writing RoboWiki articles.<br />
** Let us know how we can improve the wiki - or contribute to it yourself!<br />
|-<br />
|}<br />
<br />
|class="MainPageBG" style="width:43%; border:1px solid #999999; background:#ffffff; vertical-align:top"|<br />
{| width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#ffffff;"<br />
<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:110%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.1em 0.4em;">RoboRumble</h2><br />
|-<br />
|style="color:#000; font-size:90%"|<br />
* '''[[RoboRumble]]''' is the primary competition for Robocode bots, with divisions for [[One-on-one|1v1]], [[Melee]], [[Teams]], and [[Twin Duel]], and subdivisions for [[MiniBots]], [[MicroBots]], and [[NanoBots]]. Also see [[LiteRumble]].<br />
** '''[[RoboRumble/Starting With RoboRumble|Starting With RoboRumble]]'''<br />
** '''[[RoboRumble/Enter The Competition|Enter The Competition]]'''<br />
** '''[http://darkcanuck.net/rumble Current Rankings]'''<br />
|-<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:110%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.1em 0.4em;">Challenges</h2><br />
|-<br />
|style="color:#000; font-size:90%"|<br />
* '''[[Movement Challenge 2K7]]''' - The latest MC hands you [[Raiko]]'s gun and tests your performance against basic, intermediate, and scary-good opponents.<br />
* '''[[Targeting Challenge RM]]''' - The current benchmark of a general purpose Robocode gun, this TC puts you up against all [[Random Movement]] bots from the previous TCs.<br />
* '''[[Anti-Surfer Challenge]]''' - It may not help you climb to the top of the [[RoboRumble]], but we still have fun trying to destroy [[Wave Surfing|wave surfers]] as best we can.<br />
* '''[[Rambot Challenge 2K6]]''' - Because [[Ramming Movement|ramming]] is fun.<br />
* '''[[:Category:Challenges|More Challenges]]''' - There's plenty more where those came from...<br />
|-<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:110%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.1em 0.4em;">External Links</h2><br />
|-<br />
|style="color:#000; font-size:90%"|<br />
* '''[http://robocode.sourceforge.net/ Robocode Website]'''<br />
* '''[http://old.robowiki.net Old RoboWiki (Archive)]'''<br />
* '''[http://robocoderepository.com/ Robocode Repository]'''<br />
* '''[[wikipedia:Robocode|Wikipedia entry for Robocode]]'''<br />
|-<br />
|}<br />
|}<br />
<br />
{|style="border-spacing:5px; margin:-5px -5px;"<br />
|class="MainPageBG" style="width:45%; border:1px solid #999999; background:#ffffff; vertical-align:top; color:#000;"|<br />
{|width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#ffffff;"<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:110%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.1em 0.4em;">A few robots worth checking out...</h2><br />
|-<br />
|style="color:#000; font-size:90%"|<br />
* '''[[Shadow]]''' - A former champ in both Melee and 1v1 and the current TeamRumble champ. This is one of the toughest bots you'll ever face. [[User:ABC|ABC]]'s Shadow has been crushing Robocoders with innovative new techniques, like [[Wave Surfing]] and [[Shadow/Melee Gun]], since long before most of us ever found this game.<br />
* '''[[DrussGT]]''' - The current [[RoboRumble]] champ in General 1v1, for almost 3 years now. A super strong [[Dynamic Clustering]] gun and one of the only bots using a [[Wave Surfing/GoTo Surfing|GoTo Wave Surfing]] movement. And it's [[Open Source]].<br />
* '''[[:Category:Super Sample Bots|Super Sample Bots]]''' - Once you've gotten past the [[:Category:Sample Bots|Sample Bots]] that come with Robocode, step up and test yourself against the Super Samples.<br />
* '''[[LunarTwins]]''' - [[Twin Duel]] is a 2v2 survivalist rule set, and LunarTwins has an in-your-face strategy that few teams know how to deal with.<br />
* '''[[PrairieWolf]]''' - An ancient [[Multi-Mode]] bot that's bound to give new Robocoders a healthy challenge.<br />
* '''[[BasicGFSurfer]]''' - The [[Wave Surfing Tutorial]] and [[GFTargetingBot]] provide great starting points for new Robocoders. Put the two together and you'll find yourself just outside the RoboRumble top-100.<br />
|-<br />
|}<br />
<br />
|class="MainPageBG" style="width:55%; border:1px solid #999999; background:#ffffff; vertical-align:top"|<br />
{| width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#ffffff;"<br />
<br />
! <h2 style="margin:0; background:#e0e8ef; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">Development Tools</h2><br />
|-<br />
|style="color:#000"|<br />
* '''[[RoboResearch]]''' - Every serious Robocoder's best friend, this excellent utility helps you run loads of tests against your favorite test bed or run it through a [[:Category:Challenges|challenge]].<br />
* '''[[Robocode/Eclipse|Eclipse]]''' - Get Robocode setup with Eclipse, one of the most popular Java IDEs.<br />
* '''[http://robocode.sourceforge.net/docs/robocode/ Robocode API]''' - Not a "tool", per se, but you'll need to get familiar with it!<br />
* '''[[Robocode/Graphical Debugging|Graphical Debugging]]''' - Using Robocode's graphics support to draw on the battlefield can be a huge help in making sure your bot is doing and thinking what you expect it to.<br />
* '''[[Robocode/.NET/Create a .NET robot with Visual Studio|Visual Studio .NET]]''' - You can now create .NET Robocode bots, too.<br />
* '''[[Robocode/NetBeans/Configure|NetBeans]]''' - Prefer NetBeans to Eclipse? Here's a detailed guide to getting it setup with Robocode.<br />
* '''[[FloodGrapher]]''' - Graphing your bot's movement can offer a lot of insight into where you need to make improvements.<br />
* '''[[:Category:Utilities|Utilities]]''' - More tools to make your Robocoding easier and more productive.<br />
|-<br />
|}<br />
|}<br />
<br />
<br />
__NOTOC__ __NOEDITSECTION__</div>Astacushttp://robowiki.net/w/index.php?title=Thread:Talk:Main_Page/While_loop_in_the_%27run%27_method&diff=27329Thread:Talk:Main Page/While loop in the 'run' method2012-11-05T00:40:02Z<p>Astacus: New thread: While loop in the 'run' method</p>
<hr />
<div>I'm unclear as to when the <code>while</code> loop in the <code>run</code> method starts, so I added a debug command there:<br />
<pre><br />
while(true) {<br />
setDebugProperty("startingWhile", String.format("heading: %.1f° at time %d.", getHeading(), getTime()));<br />
ahead(200);<br />
// ...<br />
}<br />
</pre><br />
But to my surprise, this doesn't get displayed until after the <code>ahead</code> and all the following commands are executed, which I would assume should be the beginning of the second iteration. Is there something that prevents these debug properties from being displayed immediately? <br />
<br />
<small>To Wombi: Das ist der Fluch der guten Tat. Ich hoffe, Du bereust nicht, meine Frage beantwortet zu haben.</small></div>Astacushttp://robowiki.net/w/index.php?title=Thread:Talk:Main_Page/Help!_Since_I_installed_Robocode,_my_original_Java_isn%27t_working_anymore/reply_(2)&diff=27328Thread:Talk:Main Page/Help! Since I installed Robocode, my original Java isn't working anymore/reply (2)2012-11-05T00:15:31Z<p>Astacus: Reply to Help! Since I installed Robocode, my original Java isn't working anymore</p>
<hr />
<div>That's it! Thanks a lot!</div>Astacushttp://robowiki.net/w/index.php?title=Thread:Talk:Main_Page/Help!_Since_I_installed_Robocode,_my_original_Java_isn%27t_working_anymore&diff=27326Thread:Talk:Main Page/Help! Since I installed Robocode, my original Java isn't working anymore2012-11-04T19:23:18Z<p>Astacus: New thread: Help! Since I installed Robocode, my original Java isn't working anymore</p>
<hr />
<div>Hello, please forgive me if this isn't the right place to post this. I'm a noob to Java; two months ago I installed the JDK from Oracle and played around with the examples from the book "Java - A Beginner's Guide". It worked nicely until I installed Robocode. Now, Robocode is working fine, but regardless which of the example programs I try to run, I get the same error:<br />
cd the_directory_that_contains_Example.class <br />
java Example.class <br />
Error: Could not find or load main class Example.class<br />
I tried recompiling Example.class from Example.java, but that didn't help. <br />
I googled for this error; I found a nice reply at stackoverflow.com/questions/3005433/java-problem-could-not-find-main-class-helloworld, so I tried to explicitly point it to the class directory:<br />
java -classpath . Example.class<br />
But this didn't help either. BTW, I had added the follwing two environment variables for Robocode, but from what I read, they shouldn't matter:<br />
JAVA_HOME="C:\Program Files\Java\jdk1.7.0_07"<br />
Path=C:\Program Files\Java\jdk1.7.0_07\bin;C:\WINDOWS\system32;...<br />
Please help me with this. Thanks!</div>Astacus