<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://robowiki.net/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rigged</id>
	<title>Robowiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://robowiki.net/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rigged"/>
	<link rel="alternate" type="text/html" href="http://robowiki.net/wiki/Special:Contributions/Rigged"/>
	<updated>2026-04-29T15:42:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://robowiki.net/w/index.php?title=Thread:User_talk:Rigged/little_help/reply_(11)&amp;diff=25114</id>
		<title>Thread:User talk:Rigged/little help/reply (11)</title>
		<link rel="alternate" type="text/html" href="http://robowiki.net/w/index.php?title=Thread:User_talk:Rigged/little_help/reply_(11)&amp;diff=25114"/>
		<updated>2012-06-19T16:56:45Z</updated>

		<summary type="html">&lt;p&gt;Rigged: Reply to little help&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;syntaxhighlight&amp;gt;Compiling...&lt;br /&gt;
Arg.java:32: package Point2D does not exist&lt;br /&gt;
public Point2D.Double guessPosition(long when) {&lt;br /&gt;
              ^&lt;br /&gt;
Arg.java:36: cannot find symbol&lt;br /&gt;
symbol  : variable time&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
    double diff = when - time;&lt;br /&gt;
                         ^&lt;br /&gt;
Arg.java:40: cannot find symbol&lt;br /&gt;
symbol  : variable changehead&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
    if (Math.abs(changehead) &amp;gt; 0.00001) {&lt;br /&gt;
                 ^&lt;br /&gt;
Arg.java:41: cannot find symbol&lt;br /&gt;
symbol  : variable speed&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        double radius = speed/changehead;&lt;br /&gt;
                        ^&lt;br /&gt;
Arg.java:41: cannot find symbol&lt;br /&gt;
symbol  : variable changehead&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        double radius = speed/changehead;&lt;br /&gt;
                              ^&lt;br /&gt;
Arg.java:42: cannot find symbol&lt;br /&gt;
symbol  : variable changehead&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        double tothead = diff * changehead;&lt;br /&gt;
                                ^&lt;br /&gt;
Arg.java:43: cannot find symbol&lt;br /&gt;
symbol  : variable y&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        newY = y + (Math.sin(heading + tothead) * radius) - &lt;br /&gt;
               ^&lt;br /&gt;
Arg.java:43: cannot find symbol&lt;br /&gt;
symbol  : variable heading&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        newY = y + (Math.sin(heading + tothead) * radius) - &lt;br /&gt;
                             ^&lt;br /&gt;
Arg.java:43: sin(double) in java.lang.Math cannot be applied to (&amp;lt;nulltype&amp;gt;)&lt;br /&gt;
        newY = y + (Math.sin(heading + tothead) * radius) - &lt;br /&gt;
                        ^&lt;br /&gt;
Arg.java:44: cannot find symbol&lt;br /&gt;
symbol  : variable heading&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
                      (Math.sin(heading) * radius);&lt;br /&gt;
                                ^&lt;br /&gt;
Arg.java:43: operator - cannot be applied to &amp;lt;nulltype&amp;gt;,double&lt;br /&gt;
        newY = y + (Math.sin(heading + tothead) * radius) - &lt;br /&gt;
                                                          ^&lt;br /&gt;
Arg.java:45: cannot find symbol&lt;br /&gt;
symbol  : variable x&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        newX = x + (Math.cos(heading) * radius) - &lt;br /&gt;
               ^&lt;br /&gt;
Arg.java:45: cannot find symbol&lt;br /&gt;
symbol  : variable heading&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        newX = x + (Math.cos(heading) * radius) - &lt;br /&gt;
                             ^&lt;br /&gt;
Arg.java:46: cannot find symbol&lt;br /&gt;
symbol  : variable heading&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
                      (Math.cos(heading + tothead) * radius);&lt;br /&gt;
                                ^&lt;br /&gt;
Arg.java:46: cos(double) in java.lang.Math cannot be applied to (&amp;lt;nulltype&amp;gt;)&lt;br /&gt;
                      (Math.cos(heading + tothead) * radius);&lt;br /&gt;
                           ^&lt;br /&gt;
Arg.java:45: operator - cannot be applied to &amp;lt;nulltype&amp;gt;,double&lt;br /&gt;
        newX = x + (Math.cos(heading) * radius) - &lt;br /&gt;
                                                ^&lt;br /&gt;
Arg.java:51: cannot find symbol&lt;br /&gt;
symbol  : variable y&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        newY = y + Math.cos(heading) * speed * diff;&lt;br /&gt;
               ^&lt;br /&gt;
Arg.java:51: cannot find symbol&lt;br /&gt;
symbol  : variable heading&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        newY = y + Math.cos(heading) * speed * diff;&lt;br /&gt;
                            ^&lt;br /&gt;
Arg.java:51: cannot find symbol&lt;br /&gt;
symbol  : variable speed&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        newY = y + Math.cos(heading) * speed * diff;&lt;br /&gt;
                                       ^&lt;br /&gt;
Arg.java:51: incompatible types&lt;br /&gt;
found   : &amp;lt;nulltype&amp;gt;&lt;br /&gt;
required: double&lt;br /&gt;
        newY = y + Math.cos(heading) * speed * diff;&lt;br /&gt;
                                             ^&lt;br /&gt;
Arg.java:52: cannot find symbol&lt;br /&gt;
symbol  : variable x&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        newX = x + Math.sin(heading) * speed * diff;&lt;br /&gt;
               ^&lt;br /&gt;
Arg.java:52: cannot find symbol&lt;br /&gt;
symbol  : variable heading&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        newX = x + Math.sin(heading) * speed * diff;&lt;br /&gt;
                            ^&lt;br /&gt;
Arg.java:52: cannot find symbol&lt;br /&gt;
symbol  : variable speed&lt;br /&gt;
location: class argeaer.Arg&lt;br /&gt;
        newX = x + Math.sin(heading) * speed * diff;&lt;br /&gt;
                                       ^&lt;br /&gt;
Arg.java:52: incompatible types&lt;br /&gt;
found   : &amp;lt;nulltype&amp;gt;&lt;br /&gt;
required: double&lt;br /&gt;
        newX = x + Math.sin(heading) * speed * diff;&lt;br /&gt;
                                             ^&lt;br /&gt;
Arg.java:54: package Point2D does not exist&lt;br /&gt;
    return new Point2D.Double(newX, newY);&lt;br /&gt;
                      ^&lt;br /&gt;
25 errors&lt;br /&gt;
Compile Failed (1)&lt;/div&gt;</summary>
		<author><name>Rigged</name></author>
		
	</entry>
	<entry>
		<id>http://robowiki.net/w/index.php?title=Thread:User_talk:Rigged/little_help/reply_(8)&amp;diff=25068</id>
		<title>Thread:User talk:Rigged/little help/reply (8)</title>
		<link rel="alternate" type="text/html" href="http://robowiki.net/w/index.php?title=Thread:User_talk:Rigged/little_help/reply_(8)&amp;diff=25068"/>
		<updated>2012-06-18T16:49:13Z</updated>

		<summary type="html">&lt;p&gt;Rigged: Reply to little help&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;hi i've tried radial targeting but I kepp getting a error message. Could you guys just check my code.&lt;br /&gt;
&lt;br /&gt;
package argeaer;&lt;br /&gt;
import robocode.*;&lt;br /&gt;
//import java.awt.Color;&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * Arg - a robot by (your name here)&lt;br /&gt;
 */&lt;br /&gt;
public class Arg extends Robot&lt;br /&gt;
{&lt;br /&gt;
	/**&lt;br /&gt;
	 * run: Arg's default behavior&lt;br /&gt;
	 */&lt;br /&gt;
	public void run() {&lt;br /&gt;
		// After trying out your robot, try uncommenting the import at the top,&lt;br /&gt;
		// and the next line:&lt;br /&gt;
		//setColors(Color.red,Color.blue,Color.green);&lt;br /&gt;
		while(true) {&lt;br /&gt;
			// Replace the next 4 lines with any behavior you would like&lt;br /&gt;
			ahead(100);&lt;br /&gt;
			turnGunRight(360);&lt;br /&gt;
			back(100);&lt;br /&gt;
			turnGunRight(360);&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	/**&lt;br /&gt;
	 * onScannedRobot: What to do when you see another robot&lt;br /&gt;
	 */&lt;br /&gt;
/**This function predicts the time of the intersection between the &lt;br /&gt;
bullet and the target based on a simple iteration.  It then moves &lt;br /&gt;
the gun to the correct angle to fire on the target.**/&lt;br /&gt;
void doGun() {&lt;br /&gt;
    long time;&lt;br /&gt;
    long nextTime;&lt;br /&gt;
    Point2D.Double p;&lt;br /&gt;
    p = new Point2D.Double(target.x, target.y);&lt;br /&gt;
    for (int i = 0; i &amp;lt; 10; i++){&lt;br /&gt;
        nextTime = &lt;br /&gt;
    (intMath.round((getRange(getX(),getY(),p.x,p.y)/(20-(3*firePower))));&lt;br /&gt;
        time = getTime() + nextTime;&lt;br /&gt;
        p = target.guessPosition(time);&lt;br /&gt;
    }&lt;br /&gt;
    /**Turn the gun to the correct angle**/&lt;br /&gt;
    double gunOffset = getGunHeadingRadians() - &lt;br /&gt;
                  (Math.PI/2 - Math.atan2(p.y - getY(), p.x - getX()));&lt;br /&gt;
    setTurnGunLeftRadians(normaliseBearing(gunOffset));&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
double normaliseBearing(double ang) {&lt;br /&gt;
    if (ang &amp;gt; Math.PI)&lt;br /&gt;
        ang -= 2*PI;&lt;br /&gt;
    if (ang &amp;lt; -Math.PI)&lt;br /&gt;
        ang += 2*Math.PI;&lt;br /&gt;
    return ang;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public double getrange(double x1,double y1, double x2,double y2) {&lt;br /&gt;
    double x = x2-x1;&lt;br /&gt;
    double y = y2-y1;&lt;br /&gt;
    double h = Math.sqrt( x*x + y*y );&lt;br /&gt;
    return h;	&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	/**&lt;br /&gt;
	 * onHitByBullet: What to do when you're hit by a bullet&lt;br /&gt;
	 */&lt;br /&gt;
	public void onHitByBullet(HitByBulletEvent e) {&lt;br /&gt;
		turnLeft(90 - e.getBearing());&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Rigged</name></author>
		
	</entry>
	<entry>
		<id>http://robowiki.net/w/index.php?title=Thread:User_talk:Rigged/little_help/reply_(6)&amp;diff=24925</id>
		<title>Thread:User talk:Rigged/little help/reply (6)</title>
		<link rel="alternate" type="text/html" href="http://robowiki.net/w/index.php?title=Thread:User_talk:Rigged/little_help/reply_(6)&amp;diff=24925"/>
		<updated>2012-06-13T19:57:41Z</updated>

		<summary type="html">&lt;p&gt;Rigged: Reply to little help&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Is is possible to fire a bullet per turn?&lt;/div&gt;</summary>
		<author><name>Rigged</name></author>
		
	</entry>
	<entry>
		<id>http://robowiki.net/w/index.php?title=Thread:User_talk:Rigged/little_help/reply_(4)&amp;diff=24923</id>
		<title>Thread:User talk:Rigged/little help/reply (4)</title>
		<link rel="alternate" type="text/html" href="http://robowiki.net/w/index.php?title=Thread:User_talk:Rigged/little_help/reply_(4)&amp;diff=24923"/>
		<updated>2012-06-13T18:46:17Z</updated>

		<summary type="html">&lt;p&gt;Rigged: Reply to little help&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Thanks it's working now :). I want the tank to fire more than 1 bullet a turn. Is it possible?&lt;/div&gt;</summary>
		<author><name>Rigged</name></author>
		
	</entry>
	<entry>
		<id>http://robowiki.net/w/index.php?title=Thread:User_talk:Rigged/little_help/reply_(2)&amp;diff=24918</id>
		<title>Thread:User talk:Rigged/little help/reply (2)</title>
		<link rel="alternate" type="text/html" href="http://robowiki.net/w/index.php?title=Thread:User_talk:Rigged/little_help/reply_(2)&amp;diff=24918"/>
		<updated>2012-06-13T16:35:23Z</updated>

		<summary type="html">&lt;p&gt;Rigged: Reply to little help&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Whenever I try to change the colour it comes up with this error message&lt;br /&gt;
&lt;br /&gt;
Compiling...&lt;br /&gt;
BOSSSSS.java:15: cannot find symbol&lt;br /&gt;
symbol  : variable Colour&lt;br /&gt;
location: class b.BOSSSSS&lt;br /&gt;
       setallcolours(Colour.RED);&lt;br /&gt;
                     ^&lt;br /&gt;
1 error&lt;br /&gt;
Compile Failed (1)&lt;br /&gt;
&lt;br /&gt;
Im a complete newby so I don't know what to do. Anyone Help?&lt;/div&gt;</summary>
		<author><name>Rigged</name></author>
		
	</entry>
	<entry>
		<id>http://robowiki.net/w/index.php?title=Thread:Talk:Main_Page/New_to_Robocode/reply_(3)&amp;diff=24802</id>
		<title>Thread:Talk:Main Page/New to Robocode/reply (3)</title>
		<link rel="alternate" type="text/html" href="http://robowiki.net/w/index.php?title=Thread:Talk:Main_Page/New_to_Robocode/reply_(3)&amp;diff=24802"/>
		<updated>2012-06-09T09:33:17Z</updated>

		<summary type="html">&lt;p&gt;Rigged: Reply to New to Robocode&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Thanks for the advise :).  I've started by building a simple robot and i was wondering how do you change the colour of your robot.&lt;/div&gt;</summary>
		<author><name>Rigged</name></author>
		
	</entry>
	<entry>
		<id>http://robowiki.net/w/index.php?title=Thread:Talk:Main_Page/New_to_Robocode&amp;diff=24781</id>
		<title>Thread:Talk:Main Page/New to Robocode</title>
		<link rel="alternate" type="text/html" href="http://robowiki.net/w/index.php?title=Thread:Talk:Main_Page/New_to_Robocode&amp;diff=24781"/>
		<updated>2012-06-08T11:52:05Z</updated>

		<summary type="html">&lt;p&gt;Rigged: New thread: New to Robocode&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hia I've only just started using robocode and I have never coded before doe anyone know any good tutorials out there ? Or could you give me any tips on how to get started. Any advise would be appreciated.&lt;/div&gt;</summary>
		<author><name>Rigged</name></author>
		
	</entry>
</feed>