Assignments
This presentation is the property of its rightful owner.
Sponsored Links
1 / 11

Assignments PowerPoint PPT Presentation


  • 44 Views
  • Uploaded on
  • Presentation posted in: General

Assignments. AnatomyBot.java. Create a robot that turns all of it parts independently (vehicle, gun, and radar). Turn the vehicle left 360 o Turn the gun right 360 o Turn the radar left 360 o What is the fastest part? The slowest?. Fig8.java. Create a robot that travels in a figure 8.

Download Presentation

Assignments

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Assignments

Assignments


Anatomybot java

AnatomyBot.java

  • Create a robot that turns all of it parts independently (vehicle, gun, and radar).

    • Turn the vehicle left 360o

    • Turn the gun right 360o

    • Turn the radar left 360o

  • What is the fastest part?

  • The slowest?


Fig8 java

Fig8.java

  • Create a robot that travels in a figure 8.


Supercorners java

Create a robot that travels directly to a corner and fires from there.

SuperCorners.java


Randomtrianglerobot java

RandomTriangleRobot.java

  • Create a new robot called the above. Make sure that your class extends AdvancedRobot. This robot should move in a triangle pattern and shoot whenever it scans another robot. The sides of the triangle must be a RANDOM amount between 0 and the minimum length or width of the battlefield. Whenever your robot moves to the corner of the triangle, rotate its gun by 360/1.5 degrees.


Randomtritalk java

RandomTriTalk.java

  • Using your previous robot, have your robot print out a message every time

    • it runs into a wall.

    • it runs into another robot and apologize to that robot by name.

    • it gets hit by a bullet. Also print out who hit them.

    • it shoots another robot. Also print out who it hit, their remaining life, their speed, and the direction they are heading.


Wallbanger java

WallBanger.java

  • Write a robot that aims for the middle of the top wall, the middle of the right wall, the middle of the bottom wall, then the middle of the left wall.

  • Each time the robot hits the wall, have it spin its gun 360o.


Stalkerbot java

StalkerBot.java

  • Create a robot that scans for an enemy.

  • Turns to that enemy.

  • Fires.

  • Moves to where that enemy was located.

  • Repeats those four steps over again.


Superwalls

SuperWalls

  • Create a robot that moves to the closet wall, then moves along the walls.

  • Your robot should scan for the closest enemy, then predict where he will be when the bullet reaches him.


Final java

Final.java

  • Create an advanced robot

  • Make unique colors for your bot and a unique name

  • Use the following methods:

    • onHitByBullet

    • onHitWall

    • onScannedRobot

    • onWin

    • onBulletHit

    • onBulletMiss

  • Comment each of the methods explaining why the robot acts the way it does

  • Your robot must have a targeting system.

  • Field will be 5000 x 5000 and 20 rounds


Final scores

Final Scores!!!


  • Login