GithubHelp home page GithubHelp logo

shaad00 / chess-tsx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kunalvirk/chess-tsx

0.0 0.0 0.0 332 KB

Open source multiplayer chess created with React and Typescript

JavaScript 2.77% TypeScript 70.74% CSS 23.90% HTML 2.59%

chess-tsx's Introduction

Chess TSX

This is a simple React chess application that can be used to play chess with others online. It is built using React.js, TypeScript, Node.js, Express.js, and Socket.io.

demo

Concepts

  • It uses chess.js to manage the core logic of chess
  • The chess board is being built using custom utility function that can be found in 'src/utils/create-board.ts'
  • This will use redux to manage state such as 'IS_CHECK, IS_CHECKMATE, CURRENT_TURN' etc. (currently the state is being managed by context API)

Features

  • Multiplayer capabilities
  • Valid move highlighting
  • Room creation and sharing

Todo

  • Integrate Redux to manage state
  • Integrate react-router
  • Make a better UI
  • Setup backend using express.js
  • Integrate room creation and enabling users to play in a multiplayer mode using socket.io

Setup

  1. Install the dependencies: npm install

  2. Start the development server: npm run dev

The application will be available at http://localhost:5173/.

Usage

To play chess, simply create a room and share the room code with another user. The other user can then join the room and you can start playing.

License

This project is licensed under the MIT License.

chess-tsx's People

Contributors

kunalvirkekcs 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.