Difference between revisions of "Thread:User talk:R063R/Broken Bot/reply (2)"
Jump to navigation
Jump to search
Skilgannon (talk | contribs) (Reply to Broken Bot) |
Skilgannon (talk | contribs) |
||
Line 1: | Line 1: | ||
− | You also need to use the correct package for the robot. So for you the source should be placed in a folder called "pac" (in the robots directory) and "package pac;" should be at the top of your ABC.java. Then when robocode asks where to save the file you should use the file name robocode provides. This is important, as the file name must match the name of the robot and package. | + | You also need to use the correct package for the robot. So for you the source should be placed in a folder called "pac" (in the robots directory) and "package pac;" should be at the top of your ABC.java. Then when you package the robot and robocode asks where to save the file you should use the file name robocode provides. This is important, as the file name must match the name of the robot and package. |
I hope this helps. | I hope this helps. |
Latest revision as of 22:31, 23 July 2012
You also need to use the correct package for the robot. So for you the source should be placed in a folder called "pac" (in the robots directory) and "package pac;" should be at the top of your ABC.java. Then when you package the robot and robocode asks where to save the file you should use the file name robocode provides. This is important, as the file name must match the name of the robot and package.
I hope this helps.