Skip to content

This project is an interactive Tic-Tac-Toe game with a customizable grid, implemented in Java with a web interface using HTML, CSS, and JavaScript. Players take turns placing X or O, aiming to form a winning line. The game supports real-time play and offers a simple, engaging way to enjoy this classic game.

Notifications You must be signed in to change notification settings

hrish7kesh/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

About

This project is an interactive Tic-Tac-Toe game with a customizable grid, implemented in Java with a web interface using HTML, CSS, and JavaScript. Players take turns placing X or O, aiming to form a winning line. The game supports real-time play and offers a simple, engaging way to enjoy this classic game.

Features

  • Customizable Board Size: Choose the size of the grid for a personalized challenge.
  • Player Names: Enter player names for a personalized experience.
  • Real-Time Play: Players alternate turns in real-time, with the interface reflecting changes instantly.
  • Simple Web Interface: Play the game through an easy-to-use web interface.

Getting Started

Prerequisites

  • Java Development Kit (JDK) installed
  • A web browser for the HTML interface

Installation

  1. Clone the Repository:

    git clone https://github.com/hrish7kesh/TicTacToe.git
    
  2. Navigate to the Project Directory: cd TicTacToe

  3. Compile and Run the Java Game: javac Main.java TicTacToe.java java Main

  4. Open the Web Interface: Open index.html in your web browser to start playing.

How to Play

  1. Players take turns selecting grid positions to place their symbols (X or O).
  2. The first player to form a horizontal, vertical, or diagonal line wins.
  3. If the grid is filled without a winner, the game ends in a draw.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests for improvements, bug fixes, or new features.

About

This project is an interactive Tic-Tac-Toe game with a customizable grid, implemented in Java with a web interface using HTML, CSS, and JavaScript. Players take turns placing X or O, aiming to form a winning line. The game supports real-time play and offers a simple, engaging way to enjoy this classic game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published