Уроки Robocode | Dalyviai
|
- Statistika
- Dalyviai
- Verčiame into Russian
- Rezultatas
- 99% isversti negalutinai. Liko visai mažai, pirmyn!
Robocode Lessons | ||
Description of Robocode Project | ||
You will all need to write a little fighting robot and turn it in the class period after the Midterm. | Вы должны разработать маленького боевого робота и сдать код после экзаменов в середине семестра. | |
Stuff I'm expecting to see: | ||
* At the very least, a class derived from Robot or AdvancedRobot. Please include part of your name in the name of your robot. Examples include: "PingBot", "LanceAlot", "XhinStriker", "The Valinator", "AJ-D2", "RoboWendy", or something along those lines. | Как минимум класс, наследующийся от Robot или AdvancedRobot. Пожалуйста, используйте в названии робота часть своего имени. Например: "PingBot", "LanceAlot", "XhinStriker", "The Valinator", "AJ-D2", "RoboWendy" или что-то в этом роде. | |
* Code that moves your robot around the battlefield. | Код перемещения робота по полю боя. | |
* Code that scans for other robots (turns the radar), including event-handling code that does something when you scan another robot. | Код поиска других роботов (поворачивает радар), включая код реакции робота на обнаружение другого. | |
* Code that turns the turret and fires at one of your enemies! (where enemies == your classmates!) | Код поворота башни и стрельбы по противнику! (противники - ваши одноклассники) | |
What do I do with this robot after I write it? | Что делать с роботом, когда код будет готов? | |
The class after the Midterm, we will meet in the lab and have a big "showdown" where we load all of your robots onto the instructor's computer and have 3 heats with 10 rounds of battle each. These battles will be displayed on the projector for everyone to see. (Your grade is not dependent on winning the battle, but everyone will think you're a little girly-man if you lose.) | На классных занятиях после экзаменов в середине семестра мы проделаем лабораторные работы и устроим большой "решающий поединок", где мы загрузим всех ваших роботов в компьютер вашего преподавателя с возможностью 3х выстрелов по 10 раундов в каждой битве. Эти битвы мы покажем всем на проекторе. (Ваша оценка не зависит от победы в бою, но все будут думать что вы слабак, если проиграете). | |
Also, on the same night, I want you to turn in to me a printout of your robot's code with your name on it. | Тем же вечером я хотел бы получить от Вас подписанную распечатку кода вашего робота. | |
Lesson #1: MyFirstRobot | ||
Creating a Robot | ||
Here's the fun stuff: This is what Robocode is all about! | Здесь весёлая чепуха: из этого и состоит Robocode! | |
Creating a robot can be easy. Making your robot a winner is not. You can spend only a few minutes on it, or you can spend months and months. I'll warn you that writing a robot can be addictive! Once you get going, you'll watch your creation as it goes through growing pains, making mistakes and missing critical shots. But as you learn, you'll be able to teach your robot how to act and what to do, where to go, who to avoid, and where to fire. Should it hide in a corner, or jump into the fray? Picture of the robot named MatBot, which is one Mathew Nelson's robots | Создание робота может быть легким, а вот превращение его в победителя - нет. Вы можете потратить на него несколько минут, а можете и долгие месяцы. Я предупреждаю вас, что написание робота может вызвать привыкание! Однажды начав вы будете наблюдать за тем, как ваше творение допускает ошибки и пропускает в себя попадания. Но научившись сами вы сможете научить своего робота многому: как действовать, что делать, куда двигаться, кого бояться и когда стрелять. Должен ли он прятаться в углу, или прыгать в пекло? Гляньте на робота с именем MatBot, одного из роботов автора Mathew Nelson'а. | |
My First Robot | ||
Ready to create your first robot? I hope you'll find that it's easy, straightforward, fun, and addictive! | Готовы создать своего первого робота? Я надеюсь что вы увлечетесь) |
