Skip to content

A simple Tic Tac Toe game built using HTML, CSS, and JavaScript. Play against a friend in this classic 3x3 board game!

Notifications You must be signed in to change notification settings

BharathPadavu/tic-tac-toe-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

29 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Tic Tac Toe Game

A simple and fun Tic Tac Toe project built with HTML, CSS, and JavaScript.
Play against a friend in this classic 3ร—3 board game right in your browser!


๐ŸŒ Live Demo

๐Ÿ‘‰ Play Here


๐Ÿ“ธ Screenshot (Preview)

Tic Tac Toe Game


๐Ÿš€ Features

๐ŸŽฒ Classic 3ร—3 Grid Gameplay โ€“ players take turns placing X and O.

๐Ÿ‘ฅ Two-Player Mode โ€“ play with a friend on the same device.

๐Ÿ† Winner Detection โ€“ game checks winning combinations and displays the winner.

๐Ÿ”„ Reset & New Game Options โ€“ restart the board without refreshing the page.

๐Ÿ–ฅ๏ธ Basic Responsive Design โ€“ the board and elements resize to fit different screen sizes using CSS flexbox and vmin units.

โšก Built with Pure HTML, CSS & JavaScript โ€“ no external libraries or frameworks.

๐ŸŽจ Clean and Minimal UI โ€“ simple styling with CSS3 (shadows, flexbox, responsive units).


๐Ÿ› ๏ธ Tech Stack

  • ๐ŸŒ HTML5
  • ๐ŸŽจ CSS3
  • โšก JavaScript

โš ๏ธ Limitations

  • No AI Opponent โ€“ only supports 2 players on the same device (no single-player mode).
  • No Draw Detection โ€“ the game does not automatically announce a draw if all cells are filled with no winner.
  • Basic Responsiveness โ€“ layout scales with screen size, but not fully optimized for very small screens or mobile-first design.
  • No Score Tracking โ€“ scores reset after each new game (no history of wins/losses).

๐Ÿ“ฅ How to Run Locally

git clone https://github.com/BharathPadavu/tic-tac-toe-game.git
cd tic-tac-toe-game
open index.html