This Django application provides a graphical interface for the N-sliding tiles puzzle, with options for manual play, greedy solve, and IDA* solve.
Follow these instructions to get the project up and running on your local machine for development and testing purposes.
- Python 3.8 or higher
- git (for cloning the repository)
-
Clone the repository
git clone https://github.com/TheRickyZhang/SlidingTiles
-
Create and activate a virtual environment On Unix or MacOS:
python -m venv env source env/bin/activateOn Windows:
python -m venv env env\Scripts\activate
-
Install all dependencies
pip install -r requirements.txt
Navigate to the project directory and perform the following steps, if necessary:
- Apply migrations (if models have been changed)
python manage.py makemigrations python manage.py migrate
- Collect static files (if any changes have been made to static assets)
You will be prompted to confirm the operation. Type 'yes' to proceed.
python manage.py collectstatic
- Start the development server
python manage.py runserver
Access the web application by clicking on the link provided in the terminal or navigate to http://127.0.0.1:8000/ in your web browser.
This project is licensed under the MIT License