Anteater Chess

An 8×10 chess variant built in C and GTK 3 for EECS 22L. I developed the bot's search and evaluation algorithms.

Type
Course Project
Year
2026
Role
Search and evaluation
Stack
C, GTK 3, Make

About the project

Anteater Chess is the first team project from UCI’s EECS 22L. Six of us built a C and GTK 3 game on an 8×10 board with two additional anteater pieces. The application includes clocks, move history, hints, undo, difficulty levels and self-play.

I developed the bot’s search and evaluation algorithms. My teammates handled the board, rules and interface.

Search and evaluation

The engine uses iterative-deepening alpha-beta search. Aspiration windows narrow the search around the previous score, a transposition table stores visited positions, and null-move pruning and quiescence search reduce the work at each depth. Killer moves, history scores and static exchange evaluation guide move ordering.

The evaluation combines material with phase-dependent piece-square tables, mobility, king safety, the structure of the ants (this variant’s pawns) and open files. The added pieces have no standard reference values, so I tuned them through repeated self-play.

Playing within the clock

The hint button and difficulty levels use the same search with different time budgets. The engine returns its best move before the allotted time expires.

The course tournament allowed ten minutes per side. I settled on roughly ten seconds per move and improved search efficiency by using smaller numeric types and avoiding unnecessary board-state copies.

We finished second in the tournament. We won every match except the final, which ended in a draw. Under the course rules that counted as second place, though counted by material we would have won. A bit of a pity, but not bad either.

Appendix

After the course, my teammate Yide Li kept working on the project and turned it into AnteaterChess Reborn. It is rewritten in C++20 and Qt 6 and keeps the commit history from the course. According to its README, the AI uses the original search, with regression tests to keep the results unchanged.

My contribution

  1. Search

    Iterative-deepening alpha-beta with a transposition table, null-move pruning and quiescence search.

  2. Evaluation

    Material and positional scoring, with values for the variant's pieces tuned through self-play.

  3. Time management

    Search and move-ordering optimizations for a budget of roughly ten seconds per move.

Search

Quick actions