web

AI Tic Tac Toe

Tic Tac Toe with a Gemini-powered opponent that actually plays to win

AI Tic Tac Toe

Tech Stack

JavaScriptHTMLCSSGemini API

About This Project

Overview

A browser Tic Tac Toe game where the opponent's moves are generated by the Gemini API instead of a hardcoded minimax table — a small experiment in swapping classic game AI for an LLM-driven one.

Motivation

Tic Tac Toe already has a solved-game AI in minimax, so I wanted to see what happens when you swap that out for an LLM opponent instead — a small experiment in AI reasoning versus classical game theory.

Lessons Learned

An LLM-driven opponent is a genuinely different kind of 'AI' than minimax — it's more exploitable in some ways and surprisingly resilient in others, which made for a more interesting comparison than I expected going in.