Tank War
Tank War was a University AI project in which we had to program the control of the red tank. The game framework already existed, and we simply had to append new code to make it work. The blue tank is controlled with the WASD keys to move, space to fire and left and right arrows to rotate the turret. The object of the game is to destroy the red buildings before the AI tank destroys all the blue ones, with a limited number of bullets. I was in charge of the core programming; creating the finite state machine, designing the states and their transitions into each other, and writing methods to allow the tank to perform more complex actions using its existing commands (such as the MoveTankToLocation() function, which handled turning the tank to face its target location and move there). I was also in charge of the route planning and mapping, obstacle avoidance, targetting & shooting logic. The main classes that are my code: Steering, State (and all of it's subclasses) StateMachine, Vector2D.
View Website