As mentioned previously, this week’s assignment was to program an AI for a robot to battle other students’ robots. My AI is designed to target the closest robot in real-time and strafe while firing at them. The robot is programmed to adjust firing angles in order to accurately hit enemies at any distance and is able to “lead” targets by firing on where they’re going to be. The robot is fully capable of surveying the arena for hazards and avoiding them, but needs a little bit of preparation in order to know where the cliffs are.
Also, I threw in some gears and steam pipes because I love steampunk. 🙂
The Unity package for the robot can be downloaded here. A playable version for people not in the class will be available later.