Skip to content

Cuby-Project/Cuby-solve-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cuby-solve-API

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.

Features

  • 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.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Python 3.12
  • pip

Installation

1. Clone the repository

git clone https://github.com/quentinformatique/Cube-solve-API.git

2. Install dependencies

pip install -r requirements.txt

3. Run the application

In local environment

python run.py

The application should now be running on http://127.0.0.1:5000/.

Dockerizing and Running Your Application

Follow the steps in the Dockerizing and Running Your Application guide to Dockerize and run your application.

Usage

Solve Rubik's Cube

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

Built With

License

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

Contributing

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

About

A python Flask API to solve a rubik's cube

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published