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
- Go to the repository page on GitHub.
- Click the "Code" button and select "Download Zip".
- Extract the contents of the zip file to a directory of your choice. Option 2: Clone Repository
- Open a command prompt (Windows) or terminal (Mac/Linux).
- Navigate to the directory where you want to store the project.
- Run the following command: • git clone https://github.com/suprithvardhan/tic-tac-toe.git
Running the Program
- Open a command prompt (Windows) or terminal (Mac/Linux).
- Navigate to the directory where you extracted/cloned the project.
- Compile the program by running the following command:
javac TicTacToe.java
- 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