Skip to content

MateiMartin/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multiplayer Tic-Tac-Toe Game

Welcome to the Multiplayer Tic-Tac-Toe Game repository! This project brings the classic tic-tac-toe game to life with a modern twist – allowing players to engage in real-time multiplayer matches. The game is developed using a combination of Vite, Socket.io, React, CSS3, and utilizes Node.js for the server-side functionality.

Features

  • Real-time Multiplayer: Challenge your friends or any online opponents to exciting real-time tic-tac-toe matches.
  • Interactive Gameplay: Experience the timeless gameplay of tic-tac-toe with an added layer of interactive multiplayer engagement.
  • Responsive Design: The game interface is designed to work seamlessly across various devices, ensuring an enjoyable user experience for all players.

Technologies Used

  • Vite: A fast build tool for modern web development that provides a smooth development experience.
  • Socket.io: A library that enables real-time, bidirectional communication between clients and the server.
  • React: A popular JavaScript library for building interactive user interfaces.
  • CSS3: Used for styling and visually enhancing the game interface.
  • npm: The package manager for JavaScript, used to manage project dependencies and scripts.
  • Node.js: A JavaScript runtime used for the server-side logic and handling real-time connections.

Getting Started

Follow these instructions to get the game up and running on your local machine.

  1. Clone the Repository: Begin by cloning this repository to your local machine using the following command:

     git clone https://github.com/yourusername/multiplayer-tic-tac-toe.git
    
  2. Navigate to the Directory: Move into the project directory with the following command:

     cd multiplayer-tic-tac-toe
    
  3. Install Dependencies: Install the project dependencies using npm:

     npm install
    
  4. Start the Server: Launch the Node.js server that handles the game logic and real-time connections:

     node server.js
    
  5. Start the Client: Open a new terminal window and start the Vite development server for the frontend:

     npm run dev
    
  6. Access the Game: Open your web browser and navigate to http://localhost:5173 to access the multiplayer tic-tac-toe game.

Contribution

Contributions are welcome! If you'd like to improve the game, fix any issues, or add new features, feel free to fork this repository, make your changes, and submit a pull request.

License

This project is licensed under the MIT License, allowing you to freely use, modify, and distribute the code.

Enjoy the multiplayer tic-tac-toe gaming experience! If you have any questions or suggestions, feel free to contact us at martin.matei@gmail.com.