Skip to content

A simple command-line interface (CLI) based Tic-Tac-Toe game implemented in Java. It supports multiplayer mode, allowing two players to take turns playing against each other.

License

Notifications You must be signed in to change notification settings

rawwmen/Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

This is a simple command-line interface (CLI) based Tic-Tac-Toe game implemented in Java. It supports multiplayer mode, allowing two players to take turns playing against each other.

Introduction

This project is a part of my Java practice journey. I developed this game to reinforce my understanding of core Java concepts such as arrays, loops, conditional statements, and user input/output handling.

Features

  • Multiplayer Mode: Two players can take turns playing on the same terminal.
  • Simple CLI Interface: Players are prompted to enter row and column coordinates to make their moves.
  • Win Detection: The game automatically detects when a player has won or if the game ends in a draw.

How to Play

  1. Clone or Download: Clone or download the repository to your local machine.
  2. Compile: Compile the tiktok.java file using a Java compiler:
  3. Run the Program: Run the compiled Java program:
  4. Follow On-screen Instructions: Follow the on-screen instructions to play the game. Each player takes turns entering the row and column coordinates to place their mark ('X' or 'O') on the board.
  5. Game Over: The game continues until one player wins or the board is filled (resulting in a draw).

Contributions

Contributions to improve the game are welcome. If you have any suggestions, bug reports, or feature requests, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Thank you :)

About

A simple command-line interface (CLI) based Tic-Tac-Toe game implemented in Java. It supports multiplayer mode, allowing two players to take turns playing against each other.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages