Cuby-solve-API is a Python-based web application that provides an API to solve a Rubik's cube. This project is built using the Flask framework and leverages the Kociemba algorithm to solve the Rubik's cube.
- Solve Rubik's Cube: The API accepts a string representation of a Rubik's cube and returns a solution.
- Error Handling: The API handles invalid cube strings and returns an appropriate error message.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Python 3.12
- pip
git clone https://github.com/quentinformatique/Cube-solve-API.git
pip install -r requirements.txt
python run.py
The application should now be running on http://127.0.0.1:5000/
.
Follow the steps in the Dockerizing and Running Your Application guide to Dockerize and run your application.
To solve a Rubik's cube, make a GET request to the /solve/ endpoint where cubeString is a string representation of the Rubik's cube.
Example:
curl http://127.0.0.1:5000/solve/your-cube-string
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to contribute to this project and help make it better. You can contribute by:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features