Skip to main content

Queens Solver

Queens Solver solves "Queens" game hosted on linkedin with linear programming.

Installation

To install Queens solver, first run one of the following:

# Using pip
pip install queens-slvr

# Using uv
uv pip install queens-slvr

Then, run this to install browsers for playwright:

install-playwright-browsers

Usage

The Queens solver automatically loads the "Queens" game hosted daily. To call the solver, run:

queens-solver

The solver first loads the game, then solves it, and finally validates the solution on the hosted webpage. Positions of queens are marked by asterisks to the right of color index. An example output looks like:

2026-05-08 12:45:44,409 [INFO] queens_parser: [queens-board] section found
2026-05-08 12:45:44,413 [INFO] queens_parser: Queens game board parsed
2026-05-08 12:45:44,414 [INFO] queens_solver: Added equality constraint: one queen per row
2026-05-08 12:45:44,414 [INFO] queens_solver: Added equality constraint: one queen per column
2026-05-08 12:45:44,414 [INFO] queens_solver: Added equality constraint: one queen per color
2026-05-08 12:45:44,415 [INFO] queens_solver: Combined equality constraints
2026-05-08 12:45:44,415 [INFO] queens_solver: Added upper-bound constraint: at most one queen per diagonally-adjacent tiles (\)
2026-05-08 12:45:44,416 [INFO] queens_solver: Added upper-bound constraint: at most one queen per diagonally-adjacent tiles (/)
2026-05-08 12:45:44,417 [INFO] queens_solver: Combined upper-bound constraints
2026-05-08 12:45:44,417 [INFO] queens_solver: Generated target coefficients for score function
2026-05-08 12:45:44,427 [INFO] queens_solver: Solved linear programming
2026-05-08 12:45:44,596 [WARNING] queens_validator: Skip setting [queen] on row 1, column 5, since the tile is not enabled
2026-05-08 12:45:44,617 [WARNING] queens_validator: Skip setting [queen] on row 2, column 7, since the tile is not enabled
2026-05-08 12:45:44,729 [INFO] queens_validator: Setting [queen] on row 3, column 2
2026-05-08 12:45:44,821 [INFO] queens_validator: Setting [queen] on row 4, column 4
2026-05-08 12:45:45,444 [INFO] queens_validator: Setting [queen] on row 5, column 1
2026-05-08 12:45:45,509 [INFO] queens_validator: Setting [queen] on row 6, column 3
2026-05-08 12:45:45,591 [INFO] queens_validator: Setting [queen] on row 7, column 6
2026-05-08 12:45:49,158 [INFO] queens_validator: Validation result: SUCCESS
[[1  1  1  1  2* 2  2 ]
 [1  1  3  3  3  2  4*]
 [1  3* 3  3  3  3  4 ]
 [1  3  5  5* 5  3  4 ]
 [1* 3  3  3  3  3  6 ]
 [1  3  7* 7  7  3  6 ]
 [7  7  7  7  6  6* 6 ]]

Metadata

Release files for queens-slvr 0.1.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for queens-slvr 0.1.23
File Size Uploaded Provenance Actions
queens_slvr-0.1.23.tar.gz 94.3 kB With provenance Details for queens_slvr-0.1.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for queens-slvr 0.1.23
File Interpreter ABI Platform Actions
queens_slvr-0.1.23-py3-none-any.whl Python 3 none any Details for queens_slvr-0.1.23-py3-none-any.whl

Total release size: 105.4 kB

Release files / queens_slvr-0.1.23.tar.gz

Download URL queens_slvr-0.1.23.tar.gz
Size 94.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7bb697df00e5db4dadf68da76fc9583c22534dc61b1817f54ff529ce6fb1960e
BLAKE2b-256 checksum
How to use checksums
30c006ead7d3ae3ccd088fe36259b2e86957c875c0b58974c993f1c86a9a284a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 18, 2026.

Transparency log

Release files / queens_slvr-0.1.23-py3-none-any.whl

Download URL queens_slvr-0.1.23-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5fae3eadaa53bebab1865fe0f0cf76a45cdce73263bd6cd93c1c3be9dec4e91
BLAKE2b-256 checksum
How to use checksums
05460550d0b3f548fd71c4e5f38e7e4a573d2881c2a5de4d24014f9179ab870f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 18, 2026.

Transparency log

Security for queens-slvr 0.1.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for queens_slvr-0.1.23.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page