Skip to content

Tic-Tac-Toe project built with vanilla JavaScript using modules, featuring a basic AI to play against the computer.

Notifications You must be signed in to change notification settings

zafraedu/tic-tac-toe-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe with AI - Vanilla JavaScript

Tic Tac Toe


Overview

This project is a modern implementation of the classic Tic Tac Toe game, developed using Vanilla JavaScript with a strong focus on clean architecture, modularity, and maintainability.

The application was scaffolded with Vite and built using ES Modules, allowing a clear separation of concerns between game logic, AI decision-making, and UI rendering. The project demonstrates how advanced concepts can be implemented efficiently without relying on external frameworks.

An AI opponent powered by the Minimax algorithm is included, ensuring optimal gameplay decisions and showcasing practical application of algorithmic problem-solving in JavaScript.

The project is fully automated with GitHub Actions, providing continuous integration and automatic deployment to GitHub Pages.


Key Technical Highlights

  • Framework-free architecture using modern JavaScript (ES6+)
  • Modular design with clear separation of game state, logic, and presentation
  • Deterministic AI implementation using the Minimax algorithm
  • Automated CI/CD pipeline with GitHub Actions
  • Production-ready build and deploy process

Technologies

  • Vite
  • Vanilla JavaScript (ES Modules)
  • Minimax Algorithm (AI)
  • GitHub Actions (CI/CD)
  • GitHub Pages

Why This Project Matters

This project demonstrates:

  • Strong fundamentals in JavaScript without framework abstractions
  • Ability to structure scalable front-end applications
  • Understanding of algorithms and decision-making logic
  • Experience with modern tooling and deployment automation

About

Tic-Tac-Toe project built with vanilla JavaScript using modules, featuring a basic AI to play against the computer.

Topics

Resources

Stars

Watchers

Forks