A full-stack chess game featuring three gameplay modes:
- AI vs AI
- AI vs Human
- Human vs Human
- Frontend: React.js
- Backend: Flask API
- AI Model: PyTorch
- Interactive UI: A user-friendly chessboard built with React.js
- AI-powered Chess Engine: A deep learning-based chess AI using PyTorch
- RESTful API: Flask-based API to manage game state and AI computations
- Multiplayer Mode: Supports both AI and human opponents
Ensure you have the following installed:
- Node.js
- Python 3
- pip
git clone https://github.com/Coder1010ayush/chess.git
cd chess
pip install -r requirements.txt
python app.py
cd frontend
npm install
npm run dev
Method | Endpoint | Description |
---|---|---|
GET | /api/status |
Check server status |
POST | /api/move |
Send move and get AI move |
POST | /api/newgame |
Start a new chess game |
The AI model is implemented in PyTorch and integrated into the Flask API. It evaluates board states and suggests optimal moves using a deep learning approach.
Feel free to open issues or contribute by submitting pull requests.
This project is licensed under the MIT License.