yhtyyar / TicTacToe

A classic console game written in Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic-Tac-Toe Console Game

This is a simple console-based implementation of the classic Tic-Tac-Toe game written in Java.

How to Play

  1. The game is played on a 3x3 grid.
  2. Players take turns placing their marks (X or O) on the grid.
  3. The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins the game.
  4. If all the slots are filled without any player achieving a win, the game is declared a draw.

Instructions

  1. Clone the repository to your local machine.
  2. Compile the Main.java file using a Java compiler.
  3. Run the compiled Java program to start the game.
  4. Follow the on-screen instructions to enter the slot number for your move.
  5. Enjoy playing Tic-Tac-Toe in the console!

About

A classic console game written in Java


Languages

Language:Java 100.0%