Skip to content

Prodigy InfoTech WD Task-03: Tic-Tac-Toe game built using HTML, CSS, and JavaScript — features player name input, difficulty levels, and game state tracking.

Notifications You must be signed in to change notification settings

Nikhilrsingh/PRODIGY_WD_03

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PRODIGY_WD_03 – Tic-Tac-Toe Web Application

This project is part of my Web Development Internship at Prodigy InfoTech.

📌 Task Overview

Create a Tic-Tac-Toe web application that:

  • Supports Two-player and Vs Computer modes
  • Offers Easy and Medium AI difficulty
  • Allows players to enter names before starting (via start modal)
  • Shows clear game states (turn, win, draw)
  • Highlights the winning line and disables board after game end
  • Saves player names and scores using localStorage
  • Includes sound effects (move, win, draw) with mute option

🔧 Technologies Used

  • HTML5
  • CSS3
  • JavaScript (vanilla)

🎯 Features

  • Two-player and AI modes (Easy: random, Medium: basic strategy)
  • Start modal to enter player names and choose mode/difficulty
  • Scoreboard (X / O / Draw) with persistence
  • Move history and undo last move
  • Highlight winning cells and clear UI states
  • Sound effects and mute toggle
  • Responsive and modern UI

📂 Folder Structure

📁 PRODIGY_WD_03/
├── 📁 Sound/
    ├── click.mp3
    ├── draw.mp3
    ├── win.mp3
├── index.html
├── style.css
├── script.js

📚 What I Learned

  • Game state management in JavaScript
  • Simple AI strategies (random, block/win)
  • Using localStorage to persist user data
  • Creating responsive UI and accessible interactions

✅ Task completed as part of:

Web Development Internship @ Prodigy InfoTech

#WebDevelopment #JavaScript #HTML #CSS #TicTacToe #Internship #ProdigyInfoTech

About

Prodigy InfoTech WD Task-03: Tic-Tac-Toe game built using HTML, CSS, and JavaScript — features player name input, difficulty levels, and game state tracking.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published