Clone the repository:
git clone https://github.com/erickgarro/colorMapSAT.gitInstall the dependencies:
pip install -r requirements.txtYou can try it on your machine or on the cloud. 
View the online demo: https://colors.erickgarro.com
Use the main branch.
Use the digitalocean branch.
Create a virtual Python3 environment:
virtualenv -p python3 envActivate your virtual environment:
source env/bin/activateRun the command:
flask run- Access the web app at: http://127.0.0.1:5000
- Select the map you want to solve.
- Type the number of colors you want to use.
- Click on the Solve it!button.
- Check the (no)solution.
- [Optional] Download the solution files or you solved map image.
The web app is tested to work on the App Platform on Digital Ocean.
- Create an account
- Create a new App (we recommend a basic plan with 1vCPU and 512MB RAM).
- Choose the digitaloceanbranch as your source.
- Use this as your Run Command:
gunicorn --worker-tmp-dir /dev/shm --config gunicorn_config.py app:app- Follow their instructions to finalize the deployment.
- Visit your provided URL.
Copyright © 2022. Brian Bronz, Erick Garro, and Lorenzo Zaniol. 
Using Z3 and SAT clause generator by Martin Blicha. ToC @USI, Switzerland
Other copyrights belong to their respective owners.
