Skip to content
All projects

2023

AI Tic-Tac-Toe

C + GTK3 game with minimax AI and linear regression built from scratch

93%
C
ML libs
0
Dataset
UCI
  • C
  • GTK3
  • Minimax
  • Linear Regression
  • Objective-C
  • AudioToolbox

Summary

A C-language Tic-Tac-Toe game with a GTK3 graphical interface, background audio, and an AI opponent using minimax and linear regression trained on the UCI dataset. Zero ML libraries — all from scratch.

My role

UI/UX, front end and project manager in a team of six. I designed and built the interface, managed the project, and merged the team's code. It took one to two months.

Problem

Learning C is abstract without a real project. Most AI implementations rely on libraries — building from scratch forces genuine understanding.

Approach

Minimax for perfect play + linear regression on the UCI tic-tac-toe dataset for adaptive difficulty — implemented from scratch in C. GTK3 GUI with AudioToolbox for sound.

Screens

Back to all projects