← back to Main Page

A.I. Diver

Overview

In this project, the diver has to collect pearls from the ocean ground as fast as possible. Meanwhile they have to dodge oncoming piranhas, and take care not to drown by surfacing from time to time to get new air. All this they have to do completely automatically, only controlled by an A.I.

Work Distribution

The basic mechanics of this game were already provided by our professor, this includes the level generation and the character controlling features.

However, there is no way to control the Diver during the run, our task was to write a Pathfinding A.I. to find the quickest route to collect all 10 pearls, using a Node grid and the dijkstra algorithm.

Each week the game's difficulty was increased, by giving us less time to complete the level, by reducing our oxygen supply, or by adding new obstacles like piranhas or currents.
Our prof would then host a little race, to see who's A.I. manages to finish the level the quickest. During most of these competitions, my diver was at least in the top 3, earning me addition bonus points for the class.

Links

For more information, check out the Github Repository.

← back to Main Page