Menu

Need help with this error will copy and paste the output from compile

Help
2016-03-31
2016-04-01
  • Nicholas Morse

    Nicholas Morse - 2016-03-31

    I am completely new and trying to learn. I am wanting to know how to use the getGunCoolingRate. I get this error.

    Compiling...

    1. ERROR in C:\robocode\robots\oneshot\Bigkemosabi.java (at line 50)
      public double getGunCoolingRate(){
      ^^^^^^^^^^^^^^^^^^^
      This method must return a result of type double
     
  • Flemming N. Larsen

    Hi Nicholas,

    It seems like you are trying to implement or override the getGunCoolingRate() method?!
    Normally, you just call this method to check how fast the gun is cooling down.

    Which robot class are you extending? Robot, AdvancedRobot or an interface?

    You could copy and paste your robot here so I can see your code. :-)

     

Log in to post a comment.

Auth0 Logo