Skip to content

SumitDwivedi24X/Chess

Repository files navigation

Online Chess Game

Welcome to the Online Chess Game project! This application allows players to play chess against each other in real-time with a user-friendly interface and support for both white and black perspectives.

Table of Contents

Features

  • Real-time Multiplayer: Play chess online with friends or other players.
  • Drag and Drop Interface: Intuitive drag-and-drop functionality for moving pieces.
  • Automatic Board Flipping: The board flips automatically based on the player's role (white or black).
  • Spectator Mode: Allow spectators to watch the game in progress.
  • Responsive Design: Works on various screen sizes.

Installation

  1. Clone the repository:
    git clone https://github.com/SumitDwivedi24X/Chess.git
    
  2. Navigate to the project directory:
    cd Chess
    
  3. Install dependencies:
    npm install
    
  4. Start the server:
    npm start

Or

npx nodemon
  1. Open your browser and go to: http://localhost:8000

Usage

  • Drag and drop pieces to make a move.
  • The board will automatically update for both players.
  • The game supports both player and spectator modes.

Screenshots

  • White Side View
  • BLack Side View

Technologies Used

  • Frontend: HTML, CSS, JavaScript
  • Backend: Node.js, Express
  • WebSocket: Socket.io for real-time communication
  • Chess Engine: chess.js for game logic

Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.

  2. Create a new branch for your feature or bugfix:

    git checkout -b feature/your-feature-name
    
  3. Commit your changes:

    git commit -m "Add your message here"
    
  4. Push to your branch:

    git push origin feature/your-feature-name
    
  5. Open a pull request on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

If you have any questions or suggestions, feel free to reach out to me: