Code Monkey home page Code Monkey logo

react-tic-tac-toe's Introduction

❌⭕ Tic Tac Toe

📖 Introduction

Welcome to Tic Tac Toe, a classic game built with React! This project aims to provide a simple and enjoyable gaming experience for two-player mode.

🎮 Features

  • Player Customization: The game allows players to customize their names.
  • Game Logic: The game implements the classic rules of Tic Tac Toe, where the first player who gets three of their symbols in a row (horizontally, vertically, or diagonally) wins the game. The game also detects when there is a draw.
  • Restart Option: After a game completed, players can restart the game without the need to reload the page or navigate away from the game.
  • Game Log: A game log, which is located under the game board, displays the sequence of moves made by each player during the game.

👨‍💻 Technologies Used

  • ⚛️ React
  • 🟨 JavaScript
  • 🎨 CSS
  • 🚀 Vite

💭 What Improvements Can Be Made?

The project could be improved by implementing a single-player mode with a bot, undo move and visual effects. I think it could be also a good idea to add dark/light mode and customizable board, such as 4x4 or 5x5.

🏎️ Launching the Project

To execute the project locally:

  1. Clone the repository.
  2. Navigate to the project directory and run npm install or yarn to install the required dependencies.
  3. After installation, start the project by running npm run dev or yarn start.
  4. Once the project is running, open http://localhost:5173 (or the address displayed in your console) in your web browser to view the app.

🔗 Demo

👀 Check out the demo: Live Demo

react-tic-tac-toe's People

Contributors

sabbadash avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.