Skip to content

Bhavishya2601/TikTakToe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TikTakToe - Java Console Game

A simple Tik Tak Toe game built with Java for two players. Played in the console, this game allows players to take turns placing Xs and Os until someone wins or the game results in a draw.


Features

  • ✅ 3x3 game board
  • 🎯 Two-player mode (X and O)
  • 🚫 Input validation (prevents overwriting and invalid positions)
  • 🏆 Win detection (rows, columns, diagonals)
  • 🤝 Draw detection

How to Play

  1. Run the program in a terminal or Java IDE.
  2. Players will be prompted to enter their moves using row and column numbers (1–3).
  3. The game continues until one player wins or the board is full (draw).

Getting Started

Prerequisites

  • Java JDK (version 8 or higher)

How to Run

  1. Clone the repository:

    git clone https://github.com/bhavishya2601/TikTakToe-Game.git
    cd TikTakToe-Game
  2. Compile the Java files:

    javac Main.java
  3. Run the application:

    java Main

About

TikTakToe Game using java

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages