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.
- 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.
- Clone the repository:
git clone https://github.com/SumitDwivedi24X/Chess.git
- Navigate to the project directory:
cd Chess
- Install dependencies:
npm install
- Start the server:
npm start
Or
npx nodemon
- Open your browser and go to: http://localhost:8000
- Drag and drop pieces to make a move.
- The board will automatically update for both players.
- The game supports both player and spectator modes.
- White Side View
- BLack Side View
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js, Express
- WebSocket: Socket.io for real-time communication
- Chess Engine: chess.js for game logic
Contributions are welcome! Please follow these steps to contribute:
-
Fork the repository.
-
Create a new branch for your feature or bugfix:
git checkout -b feature/your-feature-name
-
Commit your changes:
git commit -m "Add your message here"
-
Push to your branch:
git push origin feature/your-feature-name
-
Open a pull request on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or suggestions, feel free to reach out to me:
- Email: [email protected]
- GitHub: SumitDwivedi24X