T0nyX1ang / noqx

Extended logic puzzle solver of noq.
https://noqx.tonyxiang.site/
Apache License 2.0
5 stars 0 forks source link

Noqx

Extended logic puzzle solver of Noq.

Current Maintainers

New features

New features from Noq

New usages from Penpa-edit

Note: if the puzzle is imported from puzz.link, you will need to change the edit mode to Problem to reset the puzzle itself.

How to run locally

Use uv with a virtual environment (Recommended)

    git clone https://github.com/T0nyX1ang/noqx.git
    uv venv
    uv sync --no-dev
    uv run noqx.py

Use PIP

    pip install -r requirements.txt
    git clone https://github.com/T0nyX1ang/noqx.git
    py -3 noqx.py
    python3 noqx.py

Additional Usage

    usage: noqx.py [-h] [-d] [-H HOST] [-p PORT] [-tl TIME_LIMIT]

    optional arguments:
      -h, --help            show this help message and exit
      -H HOST, --host HOST  the host to run the server on.
      -p PORT, --port PORT  the port to run the server on.
      -d, --debug           whether to enable debug mode with auto-reloading.
      -tl TIME_LIMIT, --time_limit TIME_LIMIT
                            time limit in seconds (default = 30).
      -pt PARALLEL_THREADS, --parallel_threads PARALLEL_THREADS
                            parallel threads (default = 1).

How to contribute

Preparations

    git clone https://github.com/T0nyX1ang/noqx.git
    git checkout dev
    uv sync
    uv pre-commit install

Write a new solver

Test solvers

    uv run coverage run -m unittest
    uv run coverage html

License