Tunnel Wars AI

Kangaroo iOS App

What: Tunnel Wars is a web game developed by Gabe Montague. It is a two player game in which players dig through tunnels and combat with spawning weapons. Gabe and Brandon developed a complex artificial intelligence that can play a human in tunnel wars.


  • Developed in Unity.
  • Game logic and learning code written in C#.
  • AI utilizes a combination of QLearning and adversarial search.

Play Here

Artificial Intelligence Explained

Tunnel Wars AI Explained

The algorithm works in three layers:

1. The highest level layer involves Q-Learning and chooses the optimal strategy based off of a simplified state representation.

2. The middle level layer uses classical search in order to find a path that follows the optimal strategy.

3. The low level layer goes through adversarial search to find a physical action that the AI should take.