Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 31

BKIT QUIZ - ROBOCODE

2014

CONTENTS

BKIT QUIZ Robocode Competition

Fundamental Knowledge

Develop Robot

BKIT QUIZ ROBOCODE COMPETITION

ROBOCODE?

A programming game, Whose goal is to develop a robot battle tank to battle against other tanks in Java or .NET.

The robot battles are running on-screen

ROBOCODE?

COMPETITION

In the World

Single Match

Team Match

Death Match

COMPETITION

Single Match
BKIT Robocode

Team Match Death Match

COMPETITION

Single Match
BKIT Robocode

MAJOR RULES
http://bkitweek.com/2014/02/bkit-robocode-2014-timeline-va-luat-thidau/ Crashed = destroyed Upgrades are not allowed during the competition (after submited). Namespace: BKITQ.ROBOCODE.<Your Name> Class: Robots Name Java: Package: BKITQ.ROBOCODE.NguyenVanA Class: DocCoCauBai

FUNDAMENTAL KNOWLEDGE

BATTLE FIELD
Size: 800 x 600 units

BATTLE FIELD
Size: 800 x 600 units

ROBOT

ROBOT

ROBOT

Energy :100 Size: 36x36

ROBOT

A Robot can: Move Scan Fire Ram(hit)

MOVING Max speed: 8.0 units/tick Accelerate: 1 unit/tick Scan Decelerate : 2unit/tick Scan The faster you go, the slower you turn Turning rate(degree/tick): 10 - 0.75 * abs(velocity)

SCANING A ScannedRobotEvent is sent to onScannedRobot() when scanning a robot. ScannedRobotEvent consists:


Energy, distance, name, velocity, heading, bearing

SCANING Detecting the nearest robot. Radius: 1200 units Maximum radar turning angle: 45 degrees Turning radar take 1 tick regardless of turning angle.

FIRING
Fire is not able to use while Gun heat > 0 - Gun heat: 1.0 + bullet power/5 - Gun cooler rate: 0.1 - Starting gun heat: 3.0

FIRING
Bullets power: 0.13 Firing a bullet costs an equal Energy amount of the bullet power A bullet hit getting back Energy: 3 * bullet power

FIRING
You lose by being hit is: 4 * bullet power + 2 * max(bullet power - 1 , 0). Max is 16.0. Bullet velocity = 20 - (3 * bullet power) => 11.0<v<19.7 You hit an enemy bot, each bot takes 0.6 damage / tick Hit wall, it will take max(abs(velocity) * 0.5 1, 0) damage For more information: http://robowiki.net/wiki/Robocode/FAQ

DEVELOP YOUR ROBOTS

DEVELOPMENT ENVIRONMENT Minimum requirement: JAVA 6 http://sourceforge.net/projects/robocode/files/robo code/1.9.0.0/

DEMO

DEMO

DEMO Writing logs out.println(debugging) Graphical Debugging


http://robowiki.net/wiki/Robocode/Graphical_Debugging

EVENTS ScannedRobotEvent HitByBulletEvent HitRobotEvent HitWallEvent BulletHitBulletEvent BulletHitEvent BulletMissedEvent

COMMON METHODS turnLeft(90); turnGunRight(90); aHead(100) fire(1) getVelocity() getBattleFieldWidth() getBattleFieldHeight()

Robot vs AdvancedRobot

ANY MORE QUESTION?

You might also like