SlideShare uma empresa Scribd logo
1 de 11
Baixar para ler offline
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

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


Mais conteúdo relacionado

Destaque

Hướng nghiệp Lập trình Web
Hướng nghiệp Lập trình WebHướng nghiệp Lập trình Web
Hướng nghiệp Lập trình WebVKhang Yang
 
Slide bảo vệ khóa luận tốt nghiệp "dịch vụ điều phối Taxi"
Slide bảo vệ khóa luận tốt nghiệp "dịch vụ điều phối Taxi" Slide bảo vệ khóa luận tốt nghiệp "dịch vụ điều phối Taxi"
Slide bảo vệ khóa luận tốt nghiệp "dịch vụ điều phối Taxi" VKhang Yang
 
Vận dụng kiến thức lập trình web vào môi trường thực tế
Vận dụng kiến thức lập trình web vào môi trường thực tếVận dụng kiến thức lập trình web vào môi trường thực tế
Vận dụng kiến thức lập trình web vào môi trường thực tếVKhang Yang
 
Flexible manufacturing systems
Flexible manufacturing systemsFlexible manufacturing systems
Flexible manufacturing systemsSudhir Reddy
 
Industrial robotics
Industrial roboticsIndustrial robotics
Industrial roboticsGU Gan
 
flexible manufacturing systems
flexible manufacturing systemsflexible manufacturing systems
flexible manufacturing systemsShivam Joshi
 
FLEXIBLE MANUFACTURING SYSTEM
FLEXIBLE MANUFACTURING SYSTEMFLEXIBLE MANUFACTURING SYSTEM
FLEXIBLE MANUFACTURING SYSTEMAnand Khare
 
Fundamental of robotic manipulator
Fundamental of robotic manipulatorFundamental of robotic manipulator
Fundamental of robotic manipulatorsnkalepvpit
 
Basics of Robotics
Basics of RoboticsBasics of Robotics
Basics of RoboticsAmeya Gandhi
 
Tactile sensors and their robotic applications
Tactile sensors and their robotic applicationsTactile sensors and their robotic applications
Tactile sensors and their robotic applicationsAasheesh Tandon
 
Flexible manufacturing system(FMS).
Flexible manufacturing system(FMS).Flexible manufacturing system(FMS).
Flexible manufacturing system(FMS).Nitin Patil
 

Destaque (13)

Hướng nghiệp Lập trình Web
Hướng nghiệp Lập trình WebHướng nghiệp Lập trình Web
Hướng nghiệp Lập trình Web
 
Robocode in netbeans
Robocode in netbeansRobocode in netbeans
Robocode in netbeans
 
Slide bảo vệ khóa luận tốt nghiệp "dịch vụ điều phối Taxi"
Slide bảo vệ khóa luận tốt nghiệp "dịch vụ điều phối Taxi" Slide bảo vệ khóa luận tốt nghiệp "dịch vụ điều phối Taxi"
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ế
Vận dụng kiến thức lập trình web vào môi trường thực tếVận dụng kiến thức lập trình web vào môi trường thực tế
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
Flexible manufacturing systemsFlexible manufacturing systems
Flexible manufacturing systems
 
Industrial robotics
Industrial roboticsIndustrial robotics
Industrial robotics
 
Robot Manipulation Basics
Robot Manipulation BasicsRobot Manipulation Basics
Robot Manipulation Basics
 
flexible manufacturing systems
flexible manufacturing systemsflexible manufacturing systems
flexible manufacturing systems
 
FLEXIBLE MANUFACTURING SYSTEM
FLEXIBLE MANUFACTURING SYSTEMFLEXIBLE MANUFACTURING SYSTEM
FLEXIBLE MANUFACTURING SYSTEM
 
Fundamental of robotic manipulator
Fundamental of robotic manipulatorFundamental of robotic manipulator
Fundamental of robotic manipulator
 
Basics of Robotics
Basics of RoboticsBasics of Robotics
Basics of Robotics
 
Tactile sensors and their robotic applications
Tactile sensors and their robotic applicationsTactile sensors and their robotic applications
Tactile sensors and their robotic applications
 
Flexible manufacturing system(FMS).
Flexible manufacturing system(FMS).Flexible manufacturing system(FMS).
Flexible manufacturing system(FMS).
 

Semelhante a Robocode basics

robot
robotrobot
robotillpa
 
BASICS and INTRODUCTION of ROBOTICS
BASICS and INTRODUCTION of ROBOTICSBASICS and INTRODUCTION of ROBOTICS
BASICS and INTRODUCTION of ROBOTICSnishantsharma1705
 
Under The Covers
Under The CoversUnder The Covers
Under The CoversBasil Bibi
 
RnA Unit 1 eeejwkwjwjw wjwjjwjjjw w.pptx
RnA Unit 1 eeejwkwjwjw wjwjjwjjjw w.pptxRnA Unit 1 eeejwkwjwjw wjwjjwjjjw w.pptx
RnA Unit 1 eeejwkwjwjw wjwjjwjjjw w.pptxGOYALJAYA
 
Day 1 slides UNO summer 2010 robotics workshop
Day 1 slides UNO summer 2010 robotics workshop Day 1 slides UNO summer 2010 robotics workshop
Day 1 slides UNO summer 2010 robotics workshop Raj Dasgupta
 
A.R.A.D. Autonomous Retrieval and Delivery
A.R.A.D. Autonomous Retrieval and DeliveryA.R.A.D. Autonomous Retrieval and Delivery
A.R.A.D. Autonomous Retrieval and Deliveryawri
 
What is Robotics - Robotics Concept Explained for Kids
What is Robotics - Robotics Concept Explained for KidsWhat is Robotics - Robotics Concept Explained for Kids
What is Robotics - Robotics Concept Explained for KidsVivek chan
 
569637 634222725772371250
569637 634222725772371250569637 634222725772371250
569637 634222725772371250Abhishek Raj
 
Collision Detection an Overview
Collision Detection an OverviewCollision Detection an Overview
Collision Detection an Overviewslantsixgames
 
Robotics-ppt.pptx
Robotics-ppt.pptxRobotics-ppt.pptx
Robotics-ppt.pptxCharan Vk
 
Simulations and the reality gap in swarm robotics
Simulations and the reality gap in swarm roboticsSimulations and the reality gap in swarm robotics
Simulations and the reality gap in swarm roboticsEdgar Buchanan
 
UNIT 6 Robotics01.ppt
UNIT 6 Robotics01.pptUNIT 6 Robotics01.ppt
UNIT 6 Robotics01.pptnachiketkale5
 
Тарас Леськів “Game Programming Patterns and Unity”
Тарас Леськів “Game Programming Patterns and Unity”Тарас Леськів “Game Programming Patterns and Unity”
Тарас Леськів “Game Programming Patterns and Unity”Lviv Startup Club
 

Semelhante a Robocode basics (20)

robot
robotrobot
robot
 
BASICS and INTRODUCTION of ROBOTICS
BASICS and INTRODUCTION of ROBOTICSBASICS and INTRODUCTION of ROBOTICS
BASICS and INTRODUCTION of ROBOTICS
 
actuators, or effectors
actuators, or effectorsactuators, or effectors
actuators, or effectors
 
Robotics PPT (1).pptx
Robotics PPT (1).pptxRobotics PPT (1).pptx
Robotics PPT (1).pptx
 
Basics of Robotics
Basics  of  RoboticsBasics  of  Robotics
Basics of Robotics
 
Under The Covers
Under The CoversUnder The Covers
Under The Covers
 
RnA Unit 1 eeejwkwjwjw wjwjjwjjjw w.pptx
RnA Unit 1 eeejwkwjwjw wjwjjwjjjw w.pptxRnA Unit 1 eeejwkwjwjw wjwjjwjjjw w.pptx
RnA Unit 1 eeejwkwjwjw wjwjjwjjjw w.pptx
 
Day 1 slides UNO summer 2010 robotics workshop
Day 1 slides UNO summer 2010 robotics workshop Day 1 slides UNO summer 2010 robotics workshop
Day 1 slides UNO summer 2010 robotics workshop
 
Lecture 7 robotics and ai
Lecture 7   robotics and ai Lecture 7   robotics and ai
Lecture 7 robotics and ai
 
A.R.A.D. Autonomous Retrieval and Delivery
A.R.A.D. Autonomous Retrieval and DeliveryA.R.A.D. Autonomous Retrieval and Delivery
A.R.A.D. Autonomous Retrieval and Delivery
 
What is Robotics - Robotics Concept Explained for Kids
What is Robotics - Robotics Concept Explained for KidsWhat is Robotics - Robotics Concept Explained for Kids
What is Robotics - Robotics Concept Explained for Kids
 
Robotics ppt
Robotics pptRobotics ppt
Robotics ppt
 
Yolov3
Yolov3Yolov3
Yolov3
 
569637 634222725772371250
569637 634222725772371250569637 634222725772371250
569637 634222725772371250
 
Collision Detection an Overview
Collision Detection an OverviewCollision Detection an Overview
Collision Detection an Overview
 
Robotics-ppt.pptx
Robotics-ppt.pptxRobotics-ppt.pptx
Robotics-ppt.pptx
 
Simulations and the reality gap in swarm robotics
Simulations and the reality gap in swarm roboticsSimulations and the reality gap in swarm robotics
Simulations and the reality gap in swarm robotics
 
ROBOTICS - Introduction to Robotics Microcontroller
ROBOTICS -  Introduction to Robotics MicrocontrollerROBOTICS -  Introduction to Robotics Microcontroller
ROBOTICS - Introduction to Robotics Microcontroller
 
UNIT 6 Robotics01.ppt
UNIT 6 Robotics01.pptUNIT 6 Robotics01.ppt
UNIT 6 Robotics01.ppt
 
Тарас Леськів “Game Programming Patterns and Unity”
Тарас Леськів “Game Programming Patterns and Unity”Тарас Леськів “Game Programming Patterns and Unity”
Тарас Леськів “Game Programming Patterns and Unity”
 

Último

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 

Último (20)

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 

Robocode basics