Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 2.13 KB

README.md

File metadata and controls

37 lines (32 loc) · 2.13 KB

robocode-player-NPCBot

Robocode player + team strategy. Quarter finals in our class Robocode Competition. Mark: 7.9

Bot Strategy

For each enemy robot we update the distance by the largest scan by each robot on our team using messages that we handle in onMessageRecieved(). Once all possible robots have been scanned, we go through the HashMap and look for the smallest possible distance for each key. In this way we obtain the robot with the shortest distance towards our team.

1. Scan

image

2. Compare

image

3. Choose Objective

image

Results against classmates

robocodeTorneigClass

Authors

artHub-j
@artHub-j

Arturo Aragón
FerranEJ
@FerranEJ

Ferran Escala