This is a simple Tic Tac Toe game built with React. You can play the game in your web browser. This README file explains how to deploy the game on your local machine.
Before you can deploy the game, you need to have the following software installed on your machine:- Node.js and npm (Node Package Manager)
- Git (optional, but recommended)
- Clone the repository to your local machine using Git:
git clone https://github.com/doesnots/Tic-Tac-Toe.git
Alternatively, you can download the source code as a ZIP file and extract it to a directory on your machine. - Open a terminal or command prompt window and navigate to the directory where you cloned or extracted the source code.
- Install the dependencies by running the following command:
npm install
- Open a terminal or command prompt window and navigate to the directory where you cloned or extracted the source code.
- Run the following command to start the game:
npm start - To play the game, click on a square to make a move. The game will automatically detect if someone has won or if the game is a draw.
- Open a terminal or command prompt window and navigate to the directory where you cloned or extracted the source code.
- Run the following command to build the game:
npm run build - Deploy the contents of the build directory to a web server of your choice. You can use any web server that supports serving static files, such as Apache or Nginx.
- If you want to serve the game on a specific port, you can use a package like serve to serve the build files:
npm install -g serve
serve -s build -l 3000
This will start a web server on port 3000 and serve the game from the build directory.