/nqueens_constraint

Quick demo of python-constraint

Primary LanguageJupyter Notebook

Setup

  1. Clone the repo and cd into it.

  2. Create and activate a new virtual environment:

    • python3 -m venv nqueens
    • linux: source nqueens/bin/activate
    • windows: \nqueens\bin\activate
  3. Install dependencies:

    • if you want to use the jupyter notebook, pip install -r jupyter_requirements.txt
    • if you just want to run the script via the command line, pip install -r requirements.txt
  4. Running the script

    • jupyter notebook nqueens_demo.ipynb
    • python3 nqueens_constraint.py