Presentation is loading. Please wait.

Presentation is loading. Please wait.

MTAT , 2CP Seminar Ilja Livenson

Similar presentations


Presentation on theme: "MTAT , 2CP Seminar Ilja Livenson"— Presentation transcript:

1 MTAT.08.015, 2CP Seminar Ilja Livenson Ilja.livenson@gmail.com
Robot Fight MTAT , 2CP Seminar Ilja Livenson

2 Outline Robot: a hero of our time Introduction to Robocode
Passing the course More about Robocode Rules of the world

3

4

5

6

7

8 Sample Fight Alt-Tab

9 Passing the course 2 benchmarks 2 competitions
Top 50% in both of them In case you fail the previous point – extra work! Article and presentation t

10 Deadlines I Contest – 3.10 – One-on-One II Contest – 10.10 – Melee
I Benchmark – 7.11 – Movement II Benchmark – – Targeting Final results: 28.11

11 Robocode Originally by Matthew Nelson from IBM
Small world with simple rules Developers write code to control the behavior of the tanks in the field Moving, shooting, scanning, ramming Code size Nanobots, Microbots, Minibots, Megabots

12 Physical model Processing loop Movement Gun and radar rotation Bullets
1 tick = 1 turn = 1 frame Movement Gun and radar rotation The speed of rotation per tick is limited Bullets

13 Processing loop All robots execute their code until taking action
Time is updated (currentTime++) All bullets move and check for collisions All robots move (heading, acceleration, velocity, distance, in that order) All robots perform scans (and collect team messages) The battlefield draws

14 Movement Acceleration: 1px/tick Deceleration: 2px/tick
Maximum speed: 8px/tick

15 Bullets Damage = 4 * firepower. Velocity = 20 - 3 * firepower
If firepower > 1, it does an additional 2 * (power - 1). Velocity = * firepower Gun heat generated = 1 + firepower Power returned on hit = 3 * firepower Heat = 1 + (firepower / 5)

16 Robocode API Event based programming Superclasses JuniorRobot
SimpleRobot AdvancedRobot

17 Modes One-on-one Melee Team

18 Questions? Next time: Movement, Targeting, Radar, Strategy


Download ppt "MTAT , 2CP Seminar Ilja Livenson"

Similar presentations


Ads by Google