Skip to content

suprithvardhan/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tic-tac-toe

simple Tic-Tac-Toe game written in java Tic Tac Toe Game

This is a Java implementation of the classic game Tic Tac Toe. The game is played on a 3x3 grid, with players taking turns to place their mark ('x' or 'o') on an empty square. The first player to get three of their marks in a row (vertically, horizontally, or diagonally) wins the game.

Getting Started These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites You need to have Java installed on your machine to run this program. You can check if you have Java installed by opening a command prompt (Windows) or terminal (Mac/Linux) and running the following command:

java -version

If Java is not installed, you can download it from the official Java website.

Installing

To get a copy of the project, you can either download the zip file or clone the repository using Git.

Option 1: Download Zip File

  1. Go to the repository page on GitHub.
  2. Click the "Code" button and select "Download Zip".
  3. Extract the contents of the zip file to a directory of your choice. Option 2: Clone Repository
  4. Open a command prompt (Windows) or terminal (Mac/Linux).
  5. Navigate to the directory where you want to store the project.
  6. Run the following command: • git clone https://github.com/suprithvardhan/tic-tac-toe.git

Running the Program

  1. Open a command prompt (Windows) or terminal (Mac/Linux).
  2. Navigate to the directory where you extracted/cloned the project.
  3. Compile the program by running the following command:

javac TicTacToe.java

  1. Run the program by running the following command:

• java TicTacToe

5.Follow the on-screen instructions to play the game.

Built With Java - The programming language used

Authors Suprith Vardhan - https://github.com/suprithvardhan

Acknowledgments

Inspired by Kunal Kushwaha

About

simple Tic-Tac-Toe game written in java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages