1 / 11

Assignments

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.

flower
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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Assignments

  2. 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?

  3. Fig8.java • Create a robot that travels in a figure 8.

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

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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

  11. Final Scores!!!

More Related