Robocode
Basics


    ubolonton

Coordinates
and
Direc3ons

3
Parts
of
a
Robot

•  All
of
them
can
rotate
independently

Movement

•  Time
is
measured
in
turns
(“3cks”).

•  Distance
is
measured
in
pixels.

•  Robot
can
move
no
farther
than
8
pixels
per

   turn.
If
commanded
to
move
farther,
it
will

   take
several
turns.

•  The
same
goes
for
turning
of
body
parts.


Firing

•  Bullets
can
have
power
of
0.1‐3

•  Firing
a
bullet
costs
an
equal
amount
of
HP

•  But
a
hit
“leechs”
back
HP

•  Weak
bullets
move
faster

Coding

•  Main
loop:
what
to
do
each
turn

•  Events:
what
to
do
when
something
happens

  – onScannedRobot

  – onHitByBullet

  – onHitRobot

  – …

•  See
the
javadoc
directory
in
the
installa3on

   folder
for
reference

Robocode basics
Robocode basics
Some
angles
from
last
slides
explained

Trick:
Linear
Aim‐ahead

•  Assume
the
enemy
moves
in
straight
line
with

   constant
speed
(very
effec3ve
against
human

   player)

Resources

•  hYp://robowiki.net/:
community
wiki
with
a
lot

   of
informa3on

•  hYp://robocode.sourceforge.net/
   developerWorks.php:
links
to
ar3cles
from
IBM

•  hYp://rmitc.org/:
RMITC
official
page,
with

   ar3cles
and
source
code
of
last
semester
robots

•  The
javadoc
folder
in
your
robocode
installa3on

   directory


More Related Content

PPT
INSIDE THE COCKPIT OF AN AIRPLANE
PPTX
Unmanned Aerial Vehicle-UAVs
PPTX
Banked turn and its effects on Stall speed of an Airplane
PDF
Aircraft Weight And Balance Handbook
PDF
Aviación NRAV
PPTX
PPT
Pccoe basic mobile_robot
PPT
Introduction to Robocode
INSIDE THE COCKPIT OF AN AIRPLANE
Unmanned Aerial Vehicle-UAVs
Banked turn and its effects on Stall speed of an Airplane
Aircraft Weight And Balance Handbook
Aviación NRAV
Pccoe basic mobile_robot
Introduction to Robocode

Viewers also liked (14)

PDF
Robocode packaging & submission
PDF
Hướng nghiệp Lập trình Web
PDF
Robocode in netbeans
PDF
Slide bảo vệ khóa luận tốt nghiệp "dịch vụ điều phối Taxi"
PDF
Vận dụng kiến thức lập trình web vào môi trường thực tế
PPT
Flexible manufacturing systems
PPTX
Industrial robotics
PDF
Robot Manipulation Basics
PPTX
flexible manufacturing systems
PPTX
FLEXIBLE MANUFACTURING SYSTEM
PPTX
Fundamental of robotic manipulator
PPTX
Basics of Robotics
PPTX
Tactile sensors and their robotic applications
PPTX
Flexible manufacturing system(FMS).
Robocode packaging & submission
Hướng nghiệp Lập trình Web
Robocode in netbeans
Slide bảo vệ khóa luận tốt nghiệp "dịch vụ điều phối Taxi"
Vận dụng kiến thức lập trình web vào môi trường thực tế
Flexible manufacturing systems
Industrial robotics
Robot Manipulation Basics
flexible manufacturing systems
FLEXIBLE MANUFACTURING SYSTEM
Fundamental of robotic manipulator
Basics of Robotics
Tactile sensors and their robotic applications
Flexible manufacturing system(FMS).
Ad

Recently uploaded (20)

PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
English Textual Question & Ans (12th Class).pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
HVAC Specification 2024 according to central public works department
PDF
Hazard Identification & Risk Assessment .pdf
PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PDF
advance database management system book.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
AI-driven educational solutions for real-life interventions in the Philippine...
English Textual Question & Ans (12th Class).pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
Paper A Mock Exam 9_ Attempt review.pdf.
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
A powerpoint presentation on the Revised K-10 Science Shaping Paper
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
What if we spent less time fighting change, and more time building what’s rig...
Cambridge-Practice-Tests-for-IELTS-12.docx
HVAC Specification 2024 according to central public works department
Hazard Identification & Risk Assessment .pdf
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
advance database management system book.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Environmental Education MCQ BD2EE - Share Source.pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Ad

Robocode basics