This is a web-based chess game application that allows users to play chess, track game status, and train a neural network model using game data.
- Play chess against another player
- Track game status and timers
- Reset the game and timers
- Collect game data for training a neural network model
- Train a neural network model using collected game data
-
Clone the repository:
git clone https://github.com/yourusername/chess-game.git cd chess-game
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
python app.py
- Open your web browser and navigate to
http://localhost:5000
to start playing chess. - Use the provided API endpoints to interact with the game programmatically.
POST /move
: Make a move in the game.GET /status
: Get the current game status.GET /captured_pieces
: Get the list of captured pieces.POST /reset
: Reset the game.POST /reset_timers
: Reset the game timers.GET /game_data
: Collect game data.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
This project is licensed under the MIT License.