Heirs Game Agent

Heirs Game Agent

Overview

Heirs Game Agent is my submission for USC CSCI 561 (Foundations of Artificial Intelligence), Homework 2 — a strategic board game called Heirs. The program reads tournament game states from input.txt and writes the chosen move to output.txt under strict time limits. The agent uses depth-limited minimax with alpha-beta pruning, iterative deepening, and aggressive move ordering, and placed 4th out of 201 students in the class competition.

Role: Student

Dates: Spring 2026

Platform: C++ (Vocareum tournament)

C++GitHub

Duties

Heirs board game pieces and setup

Heirs — strategic board game of youthful royalty (assignment overview)

Process

Development focused on measurable tournament impact: each technique was added or removed based on whether it improved practical depth and win rate. The assignment spec defines Heirs as a strategic board game played under automated grading on Vocareum; the agent must parse standardized input and emit a legal move within the allotted time.

The final implementation prioritizes fast make/unmake, fixed-size data structures, lightweight evaluation (material, prince safety, mate/draw awareness), and selective extensions such as late move reductions and root guards for prince-race endgames. ChatGPT assisted with planning and implementation iteration, consistent with course guidelines.

Artifacts: Assignment description PDF · GitHub repository