1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
Minesweeper solver
A minesweeper solver written in Zig.
The following cell representations are used for input boards:
- `#` for an unclicked cell
- `<N>` where `N=0,1,2,...` is a number shown in a cell
- `.` as an alternative to `0` (since the number 0 is not normally shown)
- `*` to represent a single mine (may be a revealed mine or a flag)
- `*<N>` where `N=1,2,...` is the number of mines
Example usage:
```
>>> import zig_minesolver
>>> board = """
... # 2 # # #
... # # # # #
... # 3 # # #
... # 2 # 4 #
... # # # # #
... """
>>> probs = zig_minesolver.get_board_probs(board, mines=8)
>>> print("
".join(str(x) for x in probs)) [0.27108, 0.0, 0.27108, 0.31325, 0.31325] [0.48594, 0.48594, 0.48594, 0.31325, 0.31325] [0.26506, 0.0, 0.50602, 0.5494, 0.5494] [0.26506, 0.0, 0.50602, 0.0, 0.5494] [0.10843, 0.10843, 0.24096, 0.5494, 0.5494] >>> ```
Release files for zig-minesolver 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| zig_minesolver-0.1.1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| zig_minesolver-0.1.1-py3-none-win32.whl | Python 3 | none | Windows x86-32 | Details |
| zig_minesolver-0.1.1-py3-none-manylinux1_x86_64.whl | Python 3 | none | Linux glibc 2.5+ x86-64 | Details |
| zig_minesolver-0.1.1-py3-none-manylinux1_i686.whl | Python 3 | none | Linux glibc 2.5+ x86-32 | Details |
| zig_minesolver-0.1.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| zig_minesolver-0.1.1-py3-none-macosx_10_9_x86_64.whl | Python 3 | none | macOS 10.9+ x86-64 | Details |
Total release size: 1.5 MB
Release files / zig_minesolver-0.1.1-py3-none-win_amd64.whl
| Download URL | zig_minesolver-0.1.1-py3-none-win_amd64.whl |
|---|---|
| Size | 161.5 kB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c98ef05ec2005be41e9e43e0aaa2a75c12deb65d9a5e43d510298fbe8949d9f3
|
|
BLAKE2b-256 checksum How to use checksums |
0ff8c865325878396215365a1f5c6b48af0c162de7132a9db9887c1c9857816e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.5
|
Release files / zig_minesolver-0.1.1-py3-none-win32.whl
| Download URL | zig_minesolver-0.1.1-py3-none-win32.whl |
|---|---|
| Size | 174.5 kB |
| Tags | Python 3 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
54bc740a4e68fd6d44328421171a248fa366f6ad00a6fafc98f46a733b3be1d2
|
|
BLAKE2b-256 checksum How to use checksums |
4cae0c4a9e9f52f6dff280cf8163033651a4f1adf70d1466836fbbef508db02e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.5
|
Release files / zig_minesolver-0.1.1-py3-none-manylinux1_x86_64.whl
| Download URL | zig_minesolver-0.1.1-py3-none-manylinux1_x86_64.whl |
|---|---|
| Size | 432.3 kB |
| Tags | Linux glibc 2.5+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
2ff58842eff9055772ea6c0e3d558ac8155eee3bccf0aa3bec7734991aa797c3
|
|
BLAKE2b-256 checksum How to use checksums |
8b45e7fb179ebec23c68027dc9884fe228205958a4c92e0f6a8c6a4b1f74abd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.5
|
Release files / zig_minesolver-0.1.1-py3-none-manylinux1_i686.whl
| Download URL | zig_minesolver-0.1.1-py3-none-manylinux1_i686.whl |
|---|---|
| Size | 442.1 kB |
| Tags | Linux glibc 2.5+ x86-32 Python 3 |
|
SHA-256 checksum How to use checksums |
65a075131c86db96f73ef9eda96d53723441ffdc270fbde83c9f319e11e7576c
|
|
BLAKE2b-256 checksum How to use checksums |
912cfe1402fd2128a036974a9e034c87bdcc170cd82c4a6fbaaa2355f49d8ff8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.5
|
Release files / zig_minesolver-0.1.1-py3-none-macosx_11_0_arm64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | zig_minesolver-0.1.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 162.3 kB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8b53930432e426a373d1df163335803ac963d9264e5e2d0baecea182c542d586
|
|
BLAKE2b-256 checksum How to use checksums |
abab61c9ae0de77dd02b5858ce266914436f3ce5cbcf2da7e063d00169755445
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
|
Release files / zig_minesolver-0.1.1-py3-none-macosx_10_9_x86_64.whl
| Download URL | zig_minesolver-0.1.1-py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 174.8 kB |
| Tags | Python 3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
d4f14e3787857c393c90a126e93c4ede26f88762f789617322eb96927fb38d44
|
|
BLAKE2b-256 checksum How to use checksums |
3905337c81a66fa46a9d03da0a0209ae45c4d1b46bce84c79eedf0f9e6537619
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.5
|