This is a multiplayer Tic Tac Toe game. Users can create rooms, join rooms, and play Tic Tac Toe with each other online.
- Username setup
- Room creation and joining
- Real-time game updates
- Option to restart the game at the end
- Room closure
- Python 3.6+
- Firebase account and project configuration
-
Clone this repository:
git clone https://github.com/karabatik00/multiplayer-tic-tac-toe.git cd multiplayer-tic-tac-toe
-
Install the requirements:
pip install -r requirements.txt
-
Add your Firebase configuration to the
scripts.js
file:const firebaseConfig = { apiKey: "YOUR_API_KEY", authDomain: "YOUR_AUTH_DOMAIN", projectId: "YOUR_PROJECT_ID", storageBucket: "YOUR_STORAGE_BUCKET", messagingSenderId: "YOUR_MESSAGING_SENDER_ID", appId: "YOUR_APP_ID", measurementId: "YOUR_MEASUREMENT_ID" }; firebase.initializeApp(firebaseConfig);
-
Start the web server:
- Open the HTML file in a browser to start the game.
- Enter your username and confirm it.
- Create a room or join an existing room.
- Wait for another player to join and start the game.
- At the end of the game, you can restart the game or close the room.
This project is licensed under the MIT License. For more information, see the LICENSE file.
If you would like to contribute, please create a pull request or file an issue.