puzzlekit 0.3.3__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- puzzlekit-0.4.0/LICENSE-cspuz +76 -0
- puzzlekit-0.4.0/MANIFEST.in +17 -0
- puzzlekit-0.4.0/PKG-INFO +211 -0
- puzzlekit-0.4.0/README.md +179 -0
- puzzlekit-0.4.0/docs/ADAPTERS.md +311 -0
- puzzlekit-0.4.0/docs/CONTRIBUTING.md +41 -0
- puzzlekit-0.4.0/docs/CSPUZ_INTEGRATION.md +33 -0
- puzzlekit-0.4.0/docs/PUZZLES.md +383 -0
- puzzlekit-0.4.0/docs/RELEASING.md +60 -0
- puzzlekit-0.4.0/docs/ROADMAP.md +128 -0
- puzzlekit-0.4.0/docs/index.md +13 -0
- puzzlekit-0.4.0/pyproject.toml +71 -0
- puzzlekit-0.4.0/rust/Cargo.lock +291 -0
- puzzlekit-0.4.0/rust/Cargo.toml +13 -0
- puzzlekit-0.4.0/rust/src/lib.rs +30 -0
- puzzlekit-0.4.0/src/puzzlekit/__init__.py +12 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/__init__.py +1 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/adapter.py +101 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/aquarium.py +76 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/balloon.py +79 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/bdwalk.py +43 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/bosanowa.py +57 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/castle.py +72 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/circlesquare.py +29 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/cluepartitions.py +39 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/codecs.py +188 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/compass.py +70 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/connection.py +49 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/coral.py +26 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/creek.py +60 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/cts.py +47 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/dbchoco.py +53 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/diagonal.py +84 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/doubleback.py +47 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/extended.py +198 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/geradeweg.py +42 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/grid.py +96 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/guidearrow.py +72 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/hashi.py +60 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/hebi.py +54 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/herugolf.py +66 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/isowatari.py +59 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/japanesesums.py +68 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/kakuro.py +70 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/keywest.py +58 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/kouchoku.py +55 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/kropki.py +38 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/longest.py +46 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/model.py +15 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/moonsun.py +32 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/nanameguri.py +52 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/narrow.py +24 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/ncells.py +42 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/nonogram.py +71 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/number10.py +40 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/number_regions.py +67 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/numcity.py +52 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/nurimaze.py +69 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/outside_numbers.py +92 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/packed.py +82 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/paintarea.py +63 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/partition.py +82 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/pencils.py +85 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/polyominous.py +111 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/regions.py +176 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/ringring.py +47 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/ripple.py +59 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/roomloops.py +54 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/roomnumbers.py +59 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/sashigane.py +57 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/sendai.py +35 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/shading.py +256 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/shugaku.py +72 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/simplegako.py +43 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/slashpack.py +46 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/soulmates.py +49 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/statuepark.py +49 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/sukoro.py +50 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/tapa.py +83 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/tents.py +61 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/walks.py +69 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/yajikazu.py +48 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/yajilin.py +159 -0
- puzzlekit-0.4.0/src/puzzlekit/_adapters/yajisoko.py +40 -0
- puzzlekit-0.4.0/src/puzzlekit/api.py +45 -0
- puzzlekit-0.4.0/src/puzzlekit/core/result.py +60 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/__init__.py +1 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/akari.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/akichi.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/aqre.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/aquapelago.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/aquarium.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/araf.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/archipelago.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/ayeheya.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/balloon.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/barns.py +44 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/bdwalk.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/bosanowa.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/bramble.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/canal.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/castle.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/cave.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/cbanana.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/chainedb.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/chocona.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/circlesquare.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/cityspace.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/cocktail.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/coffeemilk.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/compass.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/context.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/coral.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/country.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/creek.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/cts.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/dbchoco.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/detour.py +37 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/disco.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/dominion.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/doppelblock.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/doubleback.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/easyasabc.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/energywalk.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/fillmat.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/fillomino.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/firefly.py +48 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/firewalk.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/fivecells.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/forestwalk.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/fourcells.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/geradeweg.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/gokigen.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/guidearrow.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/hashi.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/hebi.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/herugolf.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/heteromino.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/heyawake.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/hitori.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/icewalk.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/invlitso.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/isowatari.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/japanesesums.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/kakuro.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/keywest.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/koburin.py +39 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/kouchoku.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/kropki.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/kurarin.py +28 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/kuromasu.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/kurotto.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/lapaz.py +33 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/lightshadow.py +40 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/lither.py +24 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/lits.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/lohkous.py +52 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/longest.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/loopsp.py +60 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/masyu.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/mines.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/mintonette.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/moonsun.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/morningwalk.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/nagenawa.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/nanameguri.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/nanro.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/narrow.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/nikoji.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/nonogram.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/norinori.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/norinuri.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/nothing.py +23 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/nothree.py +52 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/numcity.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/nurikabe.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/nuriloop.py +32 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/nurimaze.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/nurimisaki.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/nuritwin.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/paintarea.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/pencils.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/pentominous.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/putteria.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/reflect.py +52 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/ringring.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/ripple.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/roma.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/sansaroad.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/sashigane.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/sendai.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/shakashaka.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/shikaku.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/shimaguni.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/shugaku.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/simplegako.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/simpleloop.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/skyscrapers.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/slashpack.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/slitherlink.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/smullyan.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/snake.py +51 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/soulmates.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/squarejam.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/starbattle.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/statuepark.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/stostone.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/sudoku.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/sukoro.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/tapa.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/tasquare.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/tents.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/tetrochain.py +32 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/tetrochaink.py +44 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/tetroctb.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/tetrominous.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/tilecity.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/tontonbeya.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/waterwalk.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/yajikazu.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/yajilin.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/yajilin_regions.py +46 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/yajisoko.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/puzzles/yinyang.py +4 -0
- puzzlekit-0.4.0/src/puzzlekit/registry.py +154 -0
- puzzlekit-0.4.0/src/puzzlekit.egg-info/PKG-INFO +211 -0
- puzzlekit-0.4.0/src/puzzlekit.egg-info/SOURCES.txt +377 -0
- puzzlekit-0.4.0/src/puzzlekit.egg-info/requires.txt +4 -0
- puzzlekit-0.4.0/tests/__init__.py +4 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/akari.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/akichi.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/aqre.json +29 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/aquapelago.json +8 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/aquarium.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/araf.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/archipelago.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/ayeheya.json +8 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/balloon.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/barns.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/bdwalk.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/bosanowa.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/bramble.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/canal.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/castle.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/cave.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/cbanana.json +8 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/chainedb.json +8 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/chocona.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/circlesquare.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/cityspace.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/cocktail.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/coffeemilk.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/compass.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/context.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/coral.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/country.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/creek.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/cts.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/dbchoco.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/detour.json +20 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/disco.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/dominion.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/doppelblock.json +17 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/doubleback.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/easyasabc.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/energywalk.json +17 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/fillmat.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/fillomino.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/firefly.json +19 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/firewalk.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/fivecells.json +17 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/forestwalk.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/fourcells.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/geradeweg.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/gokigen.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/guidearrow.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/hashi.json +19 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/hebi.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/herugolf.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/heteromino.json +17 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/heyawake.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/hitori.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/icewalk.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/invlitso.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/isowatari.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/japanesesums.json +17 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/kakuro.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/keywest.json +19 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/koburin.json +20 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/kouchoku.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/kropki.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/kurarin.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/kuromasu.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/kurotto.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/lapaz.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/lightshadow.json +20 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/lither.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/lits.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/lohkous.json +20 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/longest.json +11 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/loopsp.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/masyu.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/mines.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/mintonette.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/moonsun.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/morningwalk.json +17 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/nagenawa.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/nanameguri.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/nanro.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/narrow.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/nikoji.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/nonogram.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/norinori.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/norinuri.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/nothing.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/nothree.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/numcity.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/nurikabe.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/nuriloop.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/nurimaze.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/nurimisaki.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/nuritwin.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/paintarea.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/pencils.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/pentominous.json +20 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/putteria.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/reflect.json +20 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/ringring.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/ripple.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/roma.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/sansaroad.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/sashigane.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/sendai.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/shakashaka.json +19 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/shikaku.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/shimaguni.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/shugaku.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/simplegako.json +20 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/simpleloop.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/skyscrapers.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/slashpack.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/slitherlink.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/smullyan.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/snake.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/soulmates.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/squarejam.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/starbattle.json +12 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/statuepark.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/stostone.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/sudoku.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/sukoro.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/tapa.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/tasquare.json +8 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/tents.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/tetrochain.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/tetrochaink.json +20 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/tetroctb.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/tetrominous.json +20 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/tilecity.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/tontonbeya.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/waterwalk.json +18 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/yajikazu.json +13 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/yajilin.json +23 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/yajilin_regions.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/yajisoko.json +14 -0
- puzzlekit-0.4.0/tests/fixtures/adapters/yinyang.json +13 -0
- puzzlekit-0.4.0/tests/integration/pzpr_state_check.js +27 -0
- puzzlekit-0.4.0/tests/native-pytest.ini +1 -0
- puzzlekit-0.4.0/tests/test_adapter_urls.py +145 -0
- puzzlekit-0.4.0/tests/test_new_adapter_limits.py +22 -0
- puzzlekit-0.4.0/tests/test_number_region_adapters.py +28 -0
- puzzlekit-0.4.0/tests/test_nurikabe.py +85 -0
- puzzlekit-0.4.0/tests/test_puzzle_table.py +58 -0
- puzzlekit-0.4.0/tests/test_pzpr_adapters.py +56 -0
- puzzlekit-0.3.3/MANIFEST.in +0 -9
- puzzlekit-0.3.3/PKG-INFO +0 -379
- puzzlekit-0.3.3/README.md +0 -328
- puzzlekit-0.3.3/pyproject.toml +0 -42
- puzzlekit-0.3.3/src/puzzlekit/__init__.py +0 -224
- puzzlekit-0.3.3/src/puzzlekit/core/direction.py +0 -107
- puzzlekit-0.3.3/src/puzzlekit/core/docs_template.py +0 -212
- puzzlekit-0.3.3/src/puzzlekit/core/grid.py +0 -197
- puzzlekit-0.3.3/src/puzzlekit/core/position.py +0 -173
- puzzlekit-0.3.3/src/puzzlekit/core/regionsgrid.py +0 -51
- puzzlekit-0.3.3/src/puzzlekit/core/result.py +0 -49
- puzzlekit-0.3.3/src/puzzlekit/core/solver.py +0 -241
- puzzlekit-0.3.3/src/puzzlekit/formats/__init__.py +0 -0
- puzzlekit-0.3.3/src/puzzlekit/formats/base.py +0 -250
- puzzlekit-0.3.3/src/puzzlekit/formats/debug.py +0 -570
- puzzlekit-0.3.3/src/puzzlekit/formats/penpa_converter.py +0 -478
- puzzlekit-0.3.3/src/puzzlekit/formats/penpa_template.py +0 -188
- puzzlekit-0.3.3/src/puzzlekit/formats/puzzle_types.py +0 -175
- puzzlekit-0.3.3/src/puzzlekit/formats/puzzlink_converter.py +0 -1690
- puzzlekit-0.3.3/src/puzzlekit/formats/utils.py +0 -194
- puzzlekit-0.3.3/src/puzzlekit/parsers/__init__.py +0 -4
- puzzlekit-0.3.3/src/puzzlekit/parsers/common.py +0 -588
- puzzlekit-0.3.3/src/puzzlekit/parsers/registry.py +0 -138
- puzzlekit-0.3.3/src/puzzlekit/solvers/__init__.py +0 -255
- puzzlekit-0.3.3/src/puzzlekit/solvers/abc_end_view.py +0 -208
- puzzlekit-0.3.3/src/puzzlekit/solvers/akari.py +0 -148
- puzzlekit-0.3.3/src/puzzlekit/solvers/aqre.py +0 -162
- puzzlekit-0.3.3/src/puzzlekit/solvers/balance_loop.py +0 -231
- puzzlekit-0.3.3/src/puzzlekit/solvers/battleship.py +0 -311
- puzzlekit-0.3.3/src/puzzlekit/solvers/binairo.py +0 -137
- puzzlekit-0.3.3/src/puzzlekit/solvers/bosanowa.py +0 -108
- puzzlekit-0.3.3/src/puzzlekit/solvers/bricks.py +0 -154
- puzzlekit-0.3.3/src/puzzlekit/solvers/buraitoraito.py +0 -104
- puzzlekit-0.3.3/src/puzzlekit/solvers/butterfly_sudoku.py +0 -124
- puzzlekit-0.3.3/src/puzzlekit/solvers/canal_view.py +0 -164
- puzzlekit-0.3.3/src/puzzlekit/solvers/castle_wall.py +0 -235
- puzzlekit-0.3.3/src/puzzlekit/solvers/cave.py +0 -250
- puzzlekit-0.3.3/src/puzzlekit/solvers/clueless_1_sudoku.py +0 -165
- puzzlekit-0.3.3/src/puzzlekit/solvers/clueless_2_sudoku.py +0 -167
- puzzlekit-0.3.3/src/puzzlekit/solvers/cojun.py +0 -111
- puzzlekit-0.3.3/src/puzzlekit/solvers/country_road.py +0 -159
- puzzlekit-0.3.3/src/puzzlekit/solvers/creek.py +0 -127
- puzzlekit-0.3.3/src/puzzlekit/solvers/detour.py +0 -144
- puzzlekit-0.3.3/src/puzzlekit/solvers/diff_neighbors.py +0 -107
- puzzlekit-0.3.3/src/puzzlekit/solvers/dominos.py +0 -116
- puzzlekit-0.3.3/src/puzzlekit/solvers/dotchi_loop.py +0 -223
- puzzlekit-0.3.3/src/puzzlekit/solvers/double_back.py +0 -133
- puzzlekit-0.3.3/src/puzzlekit/solvers/entry_exit.py +0 -142
- puzzlekit-0.3.3/src/puzzlekit/solvers/eulero.py +0 -124
- puzzlekit-0.3.3/src/puzzlekit/solvers/even_odd_sudoku.py +0 -108
- puzzlekit-0.3.3/src/puzzlekit/solvers/fobidoshi.py +0 -124
- puzzlekit-0.3.3/src/puzzlekit/solvers/fuzuli.py +0 -203
- puzzlekit-0.3.3/src/puzzlekit/solvers/gappy.py +0 -162
- puzzlekit-0.3.3/src/puzzlekit/solvers/gattai_8_sudoku.py +0 -136
- puzzlekit-0.3.3/src/puzzlekit/solvers/geradeweg.py +0 -311
- puzzlekit-0.3.3/src/puzzlekit/solvers/grand_tour.py +0 -141
- puzzlekit-0.3.3/src/puzzlekit/solvers/hakoiri.py +0 -143
- puzzlekit-0.3.3/src/puzzlekit/solvers/hakyuu.py +0 -160
- puzzlekit-0.3.3/src/puzzlekit/solvers/heyawake.py +0 -605
- puzzlekit-0.3.3/src/puzzlekit/solvers/hidoku.py +0 -136
- puzzlekit-0.3.3/src/puzzlekit/solvers/hitori.py +0 -122
- puzzlekit-0.3.3/src/puzzlekit/solvers/jigsaw_sudoku.py +0 -103
- puzzlekit-0.3.3/src/puzzlekit/solvers/juosan.py +0 -145
- puzzlekit-0.3.3/src/puzzlekit/solvers/kakkuru.py +0 -102
- puzzlekit-0.3.3/src/puzzlekit/solvers/kakurasu.py +0 -79
- puzzlekit-0.3.3/src/puzzlekit/solvers/kakuro.py +0 -114
- puzzlekit-0.3.3/src/puzzlekit/solvers/ken_ken.py +0 -256
- puzzlekit-0.3.3/src/puzzlekit/solvers/killer_sudoku.py +0 -117
- puzzlekit-0.3.3/src/puzzlekit/solvers/koburin.py +0 -150
- puzzlekit-0.3.3/src/puzzlekit/solvers/kuromasu.py +0 -156
- puzzlekit-0.3.3/src/puzzlekit/solvers/kuroshuto.py +0 -124
- puzzlekit-0.3.3/src/puzzlekit/solvers/kurotto.py +0 -233
- puzzlekit-0.3.3/src/puzzlekit/solvers/linesweeper.py +0 -112
- puzzlekit-0.3.3/src/puzzlekit/solvers/lits.py +0 -268
- puzzlekit-0.3.3/src/puzzlekit/solvers/magnetic.py +0 -171
- puzzlekit-0.3.3/src/puzzlekit/solvers/makaro.py +0 -218
- puzzlekit-0.3.3/src/puzzlekit/solvers/masyu.py +0 -223
- puzzlekit-0.3.3/src/puzzlekit/solvers/mathrax.py +0 -158
- puzzlekit-0.3.3/src/puzzlekit/solvers/mejilink.py +0 -218
- puzzlekit-0.3.3/src/puzzlekit/solvers/mid_loop.py +0 -206
- puzzlekit-0.3.3/src/puzzlekit/solvers/minesweeper.py +0 -86
- puzzlekit-0.3.3/src/puzzlekit/solvers/moon_sun.py +0 -219
- puzzlekit-0.3.3/src/puzzlekit/solvers/mosaic.py +0 -93
- puzzlekit-0.3.3/src/puzzlekit/solvers/munraito.py +0 -215
- puzzlekit-0.3.3/src/puzzlekit/solvers/nanro.py +0 -191
- puzzlekit-0.3.3/src/puzzlekit/solvers/nawabari.py +0 -204
- puzzlekit-0.3.3/src/puzzlekit/solvers/nondango.py +0 -106
- puzzlekit-0.3.3/src/puzzlekit/solvers/nonogram.py +0 -273
- puzzlekit-0.3.3/src/puzzlekit/solvers/norinori.py +0 -104
- puzzlekit-0.3.3/src/puzzlekit/solvers/number_cross.py +0 -85
- puzzlekit-0.3.3/src/puzzlekit/solvers/nurikabe.py +0 -334
- puzzlekit-0.3.3/src/puzzlekit/solvers/nurimisaki.py +0 -180
- puzzlekit-0.3.3/src/puzzlekit/solvers/one_to_x.py +0 -120
- puzzlekit-0.3.3/src/puzzlekit/solvers/paint_area.py +0 -164
- puzzlekit-0.3.3/src/puzzlekit/solvers/patchwork.py +0 -122
- puzzlekit-0.3.3/src/puzzlekit/solvers/pfeilzahlen.py +0 -172
- puzzlekit-0.3.3/src/puzzlekit/solvers/pills.py +0 -140
- puzzlekit-0.3.3/src/puzzlekit/solvers/pipes.py +0 -200
- puzzlekit-0.3.3/src/puzzlekit/solvers/putteria.py +0 -169
- puzzlekit-0.3.3/src/puzzlekit/solvers/regional_yajilin.py +0 -151
- puzzlekit-0.3.3/src/puzzlekit/solvers/renban.py +0 -120
- puzzlekit-0.3.3/src/puzzlekit/solvers/samurai_sudoku.py +0 -138
- puzzlekit-0.3.3/src/puzzlekit/solvers/shikaku.py +0 -126
- puzzlekit-0.3.3/src/puzzlekit/solvers/shimaguni.py +0 -130
- puzzlekit-0.3.3/src/puzzlekit/solvers/shingoki.py +0 -192
- puzzlekit-0.3.3/src/puzzlekit/solvers/shirokuro.py +0 -194
- puzzlekit-0.3.3/src/puzzlekit/solvers/shogun_sudoku.py +0 -138
- puzzlekit-0.3.3/src/puzzlekit/solvers/shugaku.py +0 -283
- puzzlekit-0.3.3/src/puzzlekit/solvers/simple_loop.py +0 -113
- puzzlekit-0.3.3/src/puzzlekit/solvers/skyscraper.py +0 -209
- puzzlekit-0.3.3/src/puzzlekit/solvers/slitherlink.py +0 -161
- puzzlekit-0.3.3/src/puzzlekit/solvers/slitherlink_duality.py +0 -214
- puzzlekit-0.3.3/src/puzzlekit/solvers/snake.py +0 -207
- puzzlekit-0.3.3/src/puzzlekit/solvers/sohei_sudoku.py +0 -138
- puzzlekit-0.3.3/src/puzzlekit/solvers/square_o.py +0 -91
- puzzlekit-0.3.3/src/puzzlekit/solvers/starbattle.py +0 -117
- puzzlekit-0.3.3/src/puzzlekit/solvers/stitches.py +0 -194
- puzzlekit-0.3.3/src/puzzlekit/solvers/str8t.py +0 -190
- puzzlekit-0.3.3/src/puzzlekit/solvers/sudoku.py +0 -109
- puzzlekit-0.3.3/src/puzzlekit/solvers/suguru.py +0 -96
- puzzlekit-0.3.3/src/puzzlekit/solvers/sumo_sudoku.py +0 -170
- puzzlekit-0.3.3/src/puzzlekit/solvers/tatamibari.py +0 -211
- puzzlekit-0.3.3/src/puzzlekit/solvers/tenner_grid.py +0 -91
- puzzlekit-0.3.3/src/puzzlekit/solvers/tent.py +0 -115
- puzzlekit-0.3.3/src/puzzlekit/solvers/terra_x.py +0 -100
- puzzlekit-0.3.3/src/puzzlekit/solvers/thermometer.py +0 -127
- puzzlekit-0.3.3/src/puzzlekit/solvers/tile_paint.py +0 -101
- puzzlekit-0.3.3/src/puzzlekit/solvers/trinairo.py +0 -155
- puzzlekit-0.3.3/src/puzzlekit/solvers/usoone.py +0 -167
- puzzlekit-0.3.3/src/puzzlekit/solvers/windmill_sudoku.py +0 -139
- puzzlekit-0.3.3/src/puzzlekit/solvers/yajikabe.py +0 -158
- puzzlekit-0.3.3/src/puzzlekit/solvers/yajilin.py +0 -159
- puzzlekit-0.3.3/src/puzzlekit/solvers/yin_yang.py +0 -124
- puzzlekit-0.3.3/src/puzzlekit/utils/__init__.py +0 -0
- puzzlekit-0.3.3/src/puzzlekit/utils/file_loader.py +0 -20
- puzzlekit-0.3.3/src/puzzlekit/utils/name_utils.py +0 -31
- puzzlekit-0.3.3/src/puzzlekit/utils/ortools_utils.py +0 -562
- puzzlekit-0.3.3/src/puzzlekit/utils/puzzle_math.py +0 -63
- puzzlekit-0.3.3/src/puzzlekit/verifiers/__init__.py +0 -120
- puzzlekit-0.3.3/src/puzzlekit/verifiers/common.py +0 -93
- puzzlekit-0.3.3/src/puzzlekit/viz/__init__.py +0 -171
- puzzlekit-0.3.3/src/puzzlekit/viz/base.py +0 -229
- puzzlekit-0.3.3/src/puzzlekit/viz/drawers.py +0 -282
- puzzlekit-0.3.3/src/puzzlekit.egg-info/PKG-INFO +0 -379
- puzzlekit-0.3.3/src/puzzlekit.egg-info/SOURCES.txt +0 -345
- puzzlekit-0.3.3/src/puzzlekit.egg-info/requires.txt +0 -4
- puzzlekit-0.3.3/tests/__init__.py +0 -0
- puzzlekit-0.3.3/tests/__pycache__/__init__.cpython-310.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/metadata_test_utils.cpython-310.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_abc_end_view.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_akari.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_balance_loop.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_battleship.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_binairo.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_bosanowa.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_bricks.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_buraitoraito.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_butterfly_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_castle_wall.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_cave.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_clueless_1_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_clueless_2_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_country_road.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_creek.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_detour.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_diff_neighbors.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_dominos.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_dotchi_loop.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_double_back.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_entry_exit.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_eulero.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_even_odd_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_fobidoshi.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_fuzuli.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_gappy.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_gattai_8_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_grand_tour.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_grid.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_hakoiri.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_hakyuu.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_heyawake.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_hidoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_hitori.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_jigsaw_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_juosan.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_kakkuru.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_kakurasu.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_kakuro.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_ken_ken.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_killer_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_koburin.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_kuromasu.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_kuroshuto.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_linesweeper.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_lits.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_magnetic.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_makaro.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_masyu.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_mathrax.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_minesweeper.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_moon_sun.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_mosaic.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_munraito.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_nawabari.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_nondango.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_nonogram.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_norinori.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_number_cross.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_one_to_x.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_paint_area.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_patchwork.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_pfeilzahlen.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_pills.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_putteria.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_regional_yajilin.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_renban.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_samurai_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_shikaku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_shingoki.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_shogun_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_simple_loop.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_skyscraper.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_slitherlink.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_snake.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_sohei_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_square_o.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_starbattle.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_stitches.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_str8t.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_suguru.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_sumo_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_tenner_grid.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_tent.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_terra_x.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_thermometer.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_tile_paint.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_trinairo.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_windmill_sudoku.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_yajikabe.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_yajilin.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/__pycache__/test_yin_yang.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/formats/__pycache__/conftest.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/formats/__pycache__/test_cross_format.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/formats/__pycache__/test_roundtrip.cpython-310-pytest-9.0.2.pyc +0 -0
- puzzlekit-0.3.3/tests/formats/conftest.py +0 -173
- puzzlekit-0.3.3/tests/formats/test_cross_format.py +0 -23
- puzzlekit-0.3.3/tests/formats/test_roundtrip.py +0 -96
- puzzlekit-0.3.3/tests/metadata_test_utils.py +0 -81
- puzzlekit-0.3.3/tests/test_abc_end_view.py +0 -189
- puzzlekit-0.3.3/tests/test_akari.py +0 -68
- puzzlekit-0.3.3/tests/test_balance_loop.py +0 -74
- puzzlekit-0.3.3/tests/test_battleship.py +0 -9
- puzzlekit-0.3.3/tests/test_binairo.py +0 -74
- puzzlekit-0.3.3/tests/test_bosanowa.py +0 -67
- puzzlekit-0.3.3/tests/test_bricks.py +0 -9
- puzzlekit-0.3.3/tests/test_buraitoraito.py +0 -77
- puzzlekit-0.3.3/tests/test_butterfly_sudoku.py +0 -82
- puzzlekit-0.3.3/tests/test_castle_wall.py +0 -9
- puzzlekit-0.3.3/tests/test_cave.py +0 -9
- puzzlekit-0.3.3/tests/test_clueless_1_sudoku.py +0 -22
- puzzlekit-0.3.3/tests/test_clueless_2_sudoku.py +0 -22
- puzzlekit-0.3.3/tests/test_country_road.py +0 -78
- puzzlekit-0.3.3/tests/test_creek.py +0 -9
- puzzlekit-0.3.3/tests/test_detour.py +0 -78
- puzzlekit-0.3.3/tests/test_diff_neighbors.py +0 -23
- puzzlekit-0.3.3/tests/test_dominos.py +0 -49
- puzzlekit-0.3.3/tests/test_dotchi_loop.py +0 -9
- puzzlekit-0.3.3/tests/test_double_back.py +0 -63
- puzzlekit-0.3.3/tests/test_entry_exit.py +0 -63
- puzzlekit-0.3.3/tests/test_eulero.py +0 -57
- puzzlekit-0.3.3/tests/test_even_odd_sudoku.py +0 -61
- puzzlekit-0.3.3/tests/test_fobidoshi.py +0 -78
- puzzlekit-0.3.3/tests/test_fuzuli.py +0 -69
- puzzlekit-0.3.3/tests/test_gappy.py +0 -54
- puzzlekit-0.3.3/tests/test_gattai_8_sudoku.py +0 -22
- puzzlekit-0.3.3/tests/test_grand_tour.py +0 -22
- puzzlekit-0.3.3/tests/test_grid.py +0 -111
- puzzlekit-0.3.3/tests/test_hakoiri.py +0 -23
- puzzlekit-0.3.3/tests/test_hakyuu.py +0 -23
- puzzlekit-0.3.3/tests/test_heyawake.py +0 -23
- puzzlekit-0.3.3/tests/test_hidoku.py +0 -22
- puzzlekit-0.3.3/tests/test_hitori.py +0 -22
- puzzlekit-0.3.3/tests/test_jigsaw_sudoku.py +0 -23
- puzzlekit-0.3.3/tests/test_juosan.py +0 -9
- puzzlekit-0.3.3/tests/test_kakkuru.py +0 -9
- puzzlekit-0.3.3/tests/test_kakurasu.py +0 -24
- puzzlekit-0.3.3/tests/test_kakuro.py +0 -22
- puzzlekit-0.3.3/tests/test_ken_ken.py +0 -9
- puzzlekit-0.3.3/tests/test_killer_sudoku.py +0 -23
- puzzlekit-0.3.3/tests/test_koburin.py +0 -9
- puzzlekit-0.3.3/tests/test_kuromasu.py +0 -23
- puzzlekit-0.3.3/tests/test_kuroshuto.py +0 -22
- puzzlekit-0.3.3/tests/test_linesweeper.py +0 -22
- puzzlekit-0.3.3/tests/test_lits.py +0 -9
- puzzlekit-0.3.3/tests/test_magnetic.py +0 -27
- puzzlekit-0.3.3/tests/test_makaro.py +0 -9
- puzzlekit-0.3.3/tests/test_masyu.py +0 -22
- puzzlekit-0.3.3/tests/test_mathrax.py +0 -9
- puzzlekit-0.3.3/tests/test_minesweeper.py +0 -23
- puzzlekit-0.3.3/tests/test_moon_sun.py +0 -9
- puzzlekit-0.3.3/tests/test_mosaic.py +0 -22
- puzzlekit-0.3.3/tests/test_munraito.py +0 -22
- puzzlekit-0.3.3/tests/test_nawabari.py +0 -9
- puzzlekit-0.3.3/tests/test_nondango.py +0 -23
- puzzlekit-0.3.3/tests/test_nonogram.py +0 -24
- puzzlekit-0.3.3/tests/test_norinori.py +0 -23
- puzzlekit-0.3.3/tests/test_number_cross.py +0 -24
- puzzlekit-0.3.3/tests/test_one_to_x.py +0 -26
- puzzlekit-0.3.3/tests/test_paint_area.py +0 -9
- puzzlekit-0.3.3/tests/test_patchwork.py +0 -23
- puzzlekit-0.3.3/tests/test_pfeilzahlen.py +0 -22
- puzzlekit-0.3.3/tests/test_pills.py +0 -24
- puzzlekit-0.3.3/tests/test_putteria.py +0 -9
- puzzlekit-0.3.3/tests/test_regional_yajilin.py +0 -9
- puzzlekit-0.3.3/tests/test_renban.py +0 -23
- puzzlekit-0.3.3/tests/test_samurai_sudoku.py +0 -22
- puzzlekit-0.3.3/tests/test_shikaku.py +0 -22
- puzzlekit-0.3.3/tests/test_shingoki.py +0 -9
- puzzlekit-0.3.3/tests/test_shogun_sudoku.py +0 -22
- puzzlekit-0.3.3/tests/test_simple_loop.py +0 -22
- puzzlekit-0.3.3/tests/test_skyscraper.py +0 -9
- puzzlekit-0.3.3/tests/test_slitherlink.py +0 -22
- puzzlekit-0.3.3/tests/test_snake.py +0 -24
- puzzlekit-0.3.3/tests/test_sohei_sudoku.py +0 -22
- puzzlekit-0.3.3/tests/test_square_o.py +0 -22
- puzzlekit-0.3.3/tests/test_starbattle.py +0 -24
- puzzlekit-0.3.3/tests/test_stitches.py +0 -9
- puzzlekit-0.3.3/tests/test_str8t.py +0 -22
- puzzlekit-0.3.3/tests/test_sudoku.py +0 -22
- puzzlekit-0.3.3/tests/test_suguru.py +0 -23
- puzzlekit-0.3.3/tests/test_sumo_sudoku.py +0 -22
- puzzlekit-0.3.3/tests/test_tenner_grid.py +0 -22
- puzzlekit-0.3.3/tests/test_tent.py +0 -24
- puzzlekit-0.3.3/tests/test_terra_x.py +0 -23
- puzzlekit-0.3.3/tests/test_thermometer.py +0 -24
- puzzlekit-0.3.3/tests/test_tile_paint.py +0 -25
- puzzlekit-0.3.3/tests/test_trinairo.py +0 -9
- puzzlekit-0.3.3/tests/test_windmill_sudoku.py +0 -22
- puzzlekit-0.3.3/tests/test_yajikabe.py +0 -9
- puzzlekit-0.3.3/tests/test_yajilin.py +0 -22
- puzzlekit-0.3.3/tests/test_yin_yang.py +0 -9
- {puzzlekit-0.3.3 → puzzlekit-0.4.0}/LICENSE +0 -0
- {puzzlekit-0.3.3 → puzzlekit-0.4.0}/setup.cfg +0 -0
- {puzzlekit-0.3.3 → puzzlekit-0.4.0}/src/puzzlekit/core/__init__.py +0 -0
- {puzzlekit-0.3.3 → puzzlekit-0.4.0}/src/puzzlekit.egg-info/dependency_links.txt +0 -0
- {puzzlekit-0.3.3 → puzzlekit-0.4.0}/src/puzzlekit.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021- semiexp
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
=============================================================================
|
|
24
|
+
|
|
25
|
+
Currently, cspuz_core uses Glucose SAT solver as a backend.
|
|
26
|
+
When compiled with it, the following licence for Glucose applies.
|
|
27
|
+
|
|
28
|
+
=============================================================================
|
|
29
|
+
|
|
30
|
+
Glucose -- Copyright (c) 2009-2017, Gilles Audemard, Laurent Simon
|
|
31
|
+
CRIL - Univ. Artois, France
|
|
32
|
+
LRI - Univ. Paris Sud, France (2009-2013)
|
|
33
|
+
Labri - Univ. Bordeaux, France
|
|
34
|
+
2021- , semiexp
|
|
35
|
+
|
|
36
|
+
Syrup (Glucose Parallel) -- Copyright (c) 2013-2014, Gilles Audemard, Laurent Simon
|
|
37
|
+
CRIL - Univ. Artois, France
|
|
38
|
+
Labri - Univ. Bordeaux, France
|
|
39
|
+
|
|
40
|
+
Glucose sources are based on MiniSat (see below MiniSat copyrights). Permissions and copyrights of
|
|
41
|
+
Glucose (sources until 2013, Glucose 3.0, single core) are exactly the same as Minisat on which it
|
|
42
|
+
is based on. (see below).
|
|
43
|
+
|
|
44
|
+
Glucose-Syrup sources are based on another copyright. Permissions and copyrights for the parallel
|
|
45
|
+
version of Glucose-Syrup (the "Software") are granted, free of charge, to deal with the Software
|
|
46
|
+
without restriction, including the rights to use, copy, modify, merge, publish, distribute,
|
|
47
|
+
sublicence, and/or sell copies of the Software, and to permit persons to whom the Software is
|
|
48
|
+
furnished to do so, subject to the following conditions:
|
|
49
|
+
|
|
50
|
+
- The above and below copyrights notices and this permission notice shall be included in all
|
|
51
|
+
copies or substantial portions of the Software;
|
|
52
|
+
- The parallel version of Glucose (all files modified since Glucose 3.0 releases, 2013) cannot
|
|
53
|
+
be used in any competitive event (sat competitions/evaluations) without the express permission of
|
|
54
|
+
the authors (Gilles Audemard / Laurent Simon). This is also the case for any competitive event
|
|
55
|
+
using Glucose Parallel as an embedded SAT engine (single core or not).
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
--------------- Original Minisat Copyrights
|
|
59
|
+
|
|
60
|
+
Copyright (c) 2003-2006, Niklas Een, Niklas Sorensson
|
|
61
|
+
Copyright (c) 2007-2010, Niklas Sorensson
|
|
62
|
+
|
|
63
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
64
|
+
associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
65
|
+
including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
66
|
+
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
|
67
|
+
furnished to do so, subject to the following conditions:
|
|
68
|
+
|
|
69
|
+
The above copyright notice and this permission notice shall be included in all copies or
|
|
70
|
+
substantial portions of the Software.
|
|
71
|
+
|
|
72
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
|
73
|
+
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
74
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
75
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
|
|
76
|
+
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
include LICENSE-cspuz
|
|
4
|
+
include pyproject.toml
|
|
5
|
+
|
|
6
|
+
graft src
|
|
7
|
+
graft tests
|
|
8
|
+
graft rust
|
|
9
|
+
prune rust/target
|
|
10
|
+
include docs/*.md
|
|
11
|
+
global-exclude *.py[cod]
|
|
12
|
+
global-exclude *.so *.dylib *.pyd .DS_Store
|
|
13
|
+
global-exclude __pycache__/*
|
|
14
|
+
prune tests/.pytest_cache
|
|
15
|
+
prune crawlers
|
|
16
|
+
prune scripts
|
|
17
|
+
prune assets
|
puzzlekit-0.4.0/PKG-INFO
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: puzzlekit
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: Solve logic puzzles from URLs with the cspuz Rust backend.
|
|
5
|
+
Author-email: SmilingWayne <xiaoxiaowayne@gmail.com>
|
|
6
|
+
License-Expression: MIT AND LicenseRef-cspuz-bundled
|
|
7
|
+
Project-URL: Homepage, https://github.com/SmilingWayne/puzzlekit
|
|
8
|
+
Project-URL: Documentation, https://smilingwayne.github.io/puzzlekit/
|
|
9
|
+
Project-URL: Repository, https://github.com/SmilingWayne/puzzlekit
|
|
10
|
+
Project-URL: Issues, https://github.com/SmilingWayne/puzzlekit/issues
|
|
11
|
+
Keywords: puzzle,solver,logic,cspuz,puzzlink,pzpr,pzpr-trace
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Programming Language :: Rust
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
23
|
+
Classifier: Topic :: Games/Entertainment :: Puzzle Games
|
|
24
|
+
Requires-Python: >=3.10
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
License-File: LICENSE-cspuz
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest>=7; extra == "dev"
|
|
30
|
+
Requires-Dist: build; extra == "dev"
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# PuzzleKit
|
|
34
|
+
|
|
35
|
+
[](https://pypi.org/project/puzzlekit/)
|
|
36
|
+
[](https://pypi.org/project/puzzlekit/)
|
|
37
|
+
[](https://github.com/SmilingWayne/puzzlekit/blob/main/LICENSE)
|
|
38
|
+
[](https://github.com/SmilingWayne/puzzlekit/actions/workflows/ci_pr.yml)
|
|
39
|
+
|
|
40
|
+
**Solve logic puzzles from a [puzz.link](https://puzz.link/) URL, and open the answer in [pzpr-trace](https://pzpr-trace.net/).**
|
|
41
|
+
|
|
42
|
+
PuzzleKit is a thin Python layer over the Rust [cspuz_core](https://github.com/semiexp/cspuz_core)
|
|
43
|
+
constraint solver. Give it a puzzle link and it returns the solution status,
|
|
44
|
+
the solver's board, the answer in [pzpr](https://github.com/robx/pzprjs)
|
|
45
|
+
FileIO format, and a pzpr-trace link that restores the puzzle with the answer
|
|
46
|
+
filled in.
|
|
47
|
+
|
|
48
|
+
- **Link in, answer out.** Works with the puzzle links you already have, in the
|
|
49
|
+
pzpr format used by puzz.link and pzpr-trace.
|
|
50
|
+
- **Native pzpr output.** The exported answer is the same text pzpr saves, so
|
|
51
|
+
any pzpr-based tool can load it.
|
|
52
|
+
- **Tells you about uniqueness.** Results are `unique`, `multiple`,
|
|
53
|
+
`no_solution` or `unknown`; for multiple solutions you get the marks that
|
|
54
|
+
hold in all of them.
|
|
55
|
+
- **Install and go.** Prebuilt wheels for Linux, macOS and Windows. No Rust
|
|
56
|
+
toolchain and no other Python dependencies.
|
|
57
|
+
|
|
58
|
+
## Installation
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
pip install puzzlekit
|
|
62
|
+
# or
|
|
63
|
+
uv add puzzlekit # in a uv project
|
|
64
|
+
uv pip install puzzlekit # in any virtual environment
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Requires Python 3.10 or newer. Wheels are published for Linux (x86-64 and
|
|
68
|
+
ARM64, glibc), macOS (Apple silicon and Intel) and Windows (x86-64). One wheel
|
|
69
|
+
per platform serves every supported Python version. On other
|
|
70
|
+
platforms pip builds from source, which needs Rust, a C/C++ compiler, Git and
|
|
71
|
+
network access for the pinned dependencies.
|
|
72
|
+
|
|
73
|
+
## Quick start
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
import puzzlekit
|
|
77
|
+
|
|
78
|
+
result = puzzlekit.solve("https://puzz.link/p?slither/3/2/h17d")
|
|
79
|
+
|
|
80
|
+
print(result.status) # unique
|
|
81
|
+
print(result.to_pzpr()) # puzzle and answer in pzpr FileIO format
|
|
82
|
+
print(result.to_trace_url()) # open the answer in pzpr-trace
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
pzprv3.1
|
|
87
|
+
slither
|
|
88
|
+
2
|
|
89
|
+
3
|
|
90
|
+
. . 1
|
|
91
|
+
2 . 3
|
|
92
|
+
0 0 0
|
|
93
|
+
0 0 0
|
|
94
|
+
1 1 -1 -1
|
|
95
|
+
1 -1 -1 1
|
|
96
|
+
1 -1 -1
|
|
97
|
+
-1 1 1
|
|
98
|
+
1 1 1
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
```text
|
|
102
|
+
https://pzpr-trace.net/p?state=K6gqKCoz1jPkKs7JLMlILeIy4jLm0lPQUzBU4DICUsYKXAYKIAijDIEyumDEBWMgMbnAXEOIMiAFAA&slither/3/2/h12g3
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
The trace link opens the puzzle in [pzpr-trace](https://pzpr-trace.net/) with
|
|
106
|
+
the solution already drawn.
|
|
107
|
+
|
|
108
|
+
### Input
|
|
109
|
+
|
|
110
|
+
`solve()` takes a single string. All of these are equivalent:
|
|
111
|
+
|
|
112
|
+
```python
|
|
113
|
+
puzzlekit.solve("https://puzz.link/p?slither/3/2/h17d") # puzz.link URL
|
|
114
|
+
puzzlekit.solve("?slither/3/2/h17d") # query only
|
|
115
|
+
puzzlekit.solve("slither/3/2/h17d") # bare path
|
|
116
|
+
puzzlekit.solve("https://pzpr-trace.net/p?slither/3/2/h17d") # trace link
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The host is ignored; only the puzzle path (`type/columns/rows/data`) matters.
|
|
120
|
+
A `state=` parameter in a trace link is skipped. The path starts with the
|
|
121
|
+
puzzle's URL token, such as `slither`, `nurikabe` or `yajilin`. The tokens
|
|
122
|
+
and aliases for each puzzle are in the [adapter guide](https://github.com/SmilingWayne/puzzlekit/blob/main/docs/ADAPTERS.md).
|
|
123
|
+
|
|
124
|
+
Dataset text, a puzzle type argument and legacy solver options (as in
|
|
125
|
+
PuzzleKit 0.3) are not accepted; `solve()` raises `ValueError` for them.
|
|
126
|
+
|
|
127
|
+
### Output
|
|
128
|
+
|
|
129
|
+
`solve()` returns a `PuzzleResult`:
|
|
130
|
+
|
|
131
|
+
| Member | Description |
|
|
132
|
+
| --- | --- |
|
|
133
|
+
| `status` | `unique`, `multiple`, `no_solution` or `unknown` (see below). |
|
|
134
|
+
| `has_solution` | `True`, `False`, or `None` when undetermined. |
|
|
135
|
+
| `unique` | `True` for one solution, `False` for several, `None` if unknown. |
|
|
136
|
+
| `is_solved` | `True` when the status is `unique`. |
|
|
137
|
+
| `board` | The cspuz board as a Python `dict` (cspuz's rendering format). |
|
|
138
|
+
| `board_json` | The same board as a JSON string. |
|
|
139
|
+
| `normalized_url` | The puzzle link after PuzzleKit's normalization. |
|
|
140
|
+
| `to_pzpr()` | Puzzle and answer in pzpr FileIO text. |
|
|
141
|
+
| `to_state()` | The compressed state used by pzpr-trace. |
|
|
142
|
+
| `to_trace_url()` | A pzpr-trace link that restores puzzle and answer. |
|
|
143
|
+
|
|
144
|
+
| Status | Meaning |
|
|
145
|
+
| --- | --- |
|
|
146
|
+
| `unique` | Exactly one solution. |
|
|
147
|
+
| `multiple` | Several solutions. Exports contain only the marks shared by all of them; the rest stay empty. |
|
|
148
|
+
| `no_solution` | The puzzle has no solution. |
|
|
149
|
+
| `unknown` | The solver could not determine uniqueness. |
|
|
150
|
+
|
|
151
|
+
`to_pzpr()`, `to_state()` and `to_trace_url()` work for `unique` and
|
|
152
|
+
`multiple` results of the supported puzzles below. For `no_solution` and
|
|
153
|
+
`unknown` they raise `ValueError`, as they do for puzzles without a verified
|
|
154
|
+
adapter. Unreadable or unsupported input raises `ValueError`; an internal
|
|
155
|
+
solver failure raises `RuntimeError`.
|
|
156
|
+
|
|
157
|
+
`board` is available for every puzzle the pinned backend can solve, even when
|
|
158
|
+
there is no pzpr export. `puzzlekit.supported_puzzles()` lists the backend's
|
|
159
|
+
coverage; this is wider than the verified list below.
|
|
160
|
+
|
|
161
|
+
## Supported puzzles
|
|
162
|
+
|
|
163
|
+
<!-- puzzle-summary:start -->
|
|
164
|
+
PuzzleKit currently supports **137** of the **346** puzzle types registered in pzpr. [puzzlekit-dataset](https://github.com/SmilingWayne/puzzlekit-dataset) holds 39,405 problems (33,692 with answers) for 77 of them.
|
|
165
|
+
<!-- puzzle-summary:end -->
|
|
166
|
+
|
|
167
|
+
The [puzzle table](https://github.com/SmilingWayne/puzzlekit/blob/main/docs/PUZZLES.md) lists every pzpr puzzle with its support
|
|
168
|
+
status, dataset size and largest board. The names are pzpr IDs, so they can be
|
|
169
|
+
pasted straight into pzpr-trace.
|
|
170
|
+
The [adapter guide](https://github.com/SmilingWayne/puzzlekit/blob/main/docs/ADAPTERS.md) gives each puzzle's URL tokens, answer
|
|
171
|
+
marks and known limits.
|
|
172
|
+
|
|
173
|
+
"Supported" means a verified adapter: URL solving, native pzpr FileIO and
|
|
174
|
+
pzpr-trace state, checked against real puzzles and the custom
|
|
175
|
+
[pzprjs](https://github.com/SmilingWayne/pzprjs-trace) used by pzpr-trace.
|
|
176
|
+
|
|
177
|
+
## Upgrading from 0.3
|
|
178
|
+
|
|
179
|
+
0.4 is a rewrite. The OR-Tools solvers and the dataset-text interface were
|
|
180
|
+
removed in favor of the cspuz backend and puzzle URLs. `solve()` now takes a
|
|
181
|
+
URL and returns a `PuzzleResult`. Pin `puzzlekit<0.4` if you depend on the
|
|
182
|
+
old API.
|
|
183
|
+
|
|
184
|
+
## Related projects
|
|
185
|
+
|
|
186
|
+
- [puzz.link](https://puzz.link/) and [pzprjs](https://github.com/robx/pzprjs) — the puzzle player and the
|
|
187
|
+
pzpr format PuzzleKit reads and writes.
|
|
188
|
+
- [pzpr-trace](https://pzpr-trace.net/) — view and replay puzzle states; the target of `to_trace_url()`.
|
|
189
|
+
- [cspuz_core](https://github.com/semiexp/cspuz_core) — the Rust constraint solver and puzzle models PuzzleKit
|
|
190
|
+
builds on, and [cspuz-solver2](https://github.com/semiexp/cspuz-solver2), a web solver built on it.
|
|
191
|
+
- [Penpa+](https://github.com/swaroopg92/penpa-edit) — a general puzzle editor and solver-checker.
|
|
192
|
+
- [puzzlekit-dataset](https://github.com/SmilingWayne/puzzlekit-dataset) — about 40,000 puzzle instances used to test PuzzleKit.
|
|
193
|
+
- [puzzlekit-web](https://github.com/SmilingWayne/puzzlekit-web) — a step-by-step, explainable solver in the browser.
|
|
194
|
+
|
|
195
|
+
## Development
|
|
196
|
+
|
|
197
|
+
```sh
|
|
198
|
+
git clone https://github.com/SmilingWayne/puzzlekit
|
|
199
|
+
cd puzzlekit
|
|
200
|
+
python -m pip install -e '.[dev]'
|
|
201
|
+
python -m pytest -q
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Building needs Rust, a C/C++ compiler and Git. The [contributor guide](https://github.com/SmilingWayne/puzzlekit/blob/main/docs/CONTRIBUTING.md)
|
|
205
|
+
covers adding a puzzle, and [cspuz integration](https://github.com/SmilingWayne/puzzlekit/blob/main/docs/CSPUZ_INTEGRATION.md)
|
|
206
|
+
describes the backend bridge. [Releasing](https://github.com/SmilingWayne/puzzlekit/blob/main/docs/RELEASING.md) lists the release checklist.
|
|
207
|
+
|
|
208
|
+
## License
|
|
209
|
+
|
|
210
|
+
PuzzleKit is released under the [MIT license](https://github.com/SmilingWayne/puzzlekit/blob/main/LICENSE). The bundled cspuz
|
|
211
|
+
components have their own terms in [LICENSE-cspuz](https://github.com/SmilingWayne/puzzlekit/blob/main/LICENSE-cspuz).
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# PuzzleKit
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/puzzlekit/)
|
|
4
|
+
[](https://pypi.org/project/puzzlekit/)
|
|
5
|
+
[](https://github.com/SmilingWayne/puzzlekit/blob/main/LICENSE)
|
|
6
|
+
[](https://github.com/SmilingWayne/puzzlekit/actions/workflows/ci_pr.yml)
|
|
7
|
+
|
|
8
|
+
**Solve logic puzzles from a [puzz.link](https://puzz.link/) URL, and open the answer in [pzpr-trace](https://pzpr-trace.net/).**
|
|
9
|
+
|
|
10
|
+
PuzzleKit is a thin Python layer over the Rust [cspuz_core](https://github.com/semiexp/cspuz_core)
|
|
11
|
+
constraint solver. Give it a puzzle link and it returns the solution status,
|
|
12
|
+
the solver's board, the answer in [pzpr](https://github.com/robx/pzprjs)
|
|
13
|
+
FileIO format, and a pzpr-trace link that restores the puzzle with the answer
|
|
14
|
+
filled in.
|
|
15
|
+
|
|
16
|
+
- **Link in, answer out.** Works with the puzzle links you already have, in the
|
|
17
|
+
pzpr format used by puzz.link and pzpr-trace.
|
|
18
|
+
- **Native pzpr output.** The exported answer is the same text pzpr saves, so
|
|
19
|
+
any pzpr-based tool can load it.
|
|
20
|
+
- **Tells you about uniqueness.** Results are `unique`, `multiple`,
|
|
21
|
+
`no_solution` or `unknown`; for multiple solutions you get the marks that
|
|
22
|
+
hold in all of them.
|
|
23
|
+
- **Install and go.** Prebuilt wheels for Linux, macOS and Windows. No Rust
|
|
24
|
+
toolchain and no other Python dependencies.
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
pip install puzzlekit
|
|
30
|
+
# or
|
|
31
|
+
uv add puzzlekit # in a uv project
|
|
32
|
+
uv pip install puzzlekit # in any virtual environment
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Requires Python 3.10 or newer. Wheels are published for Linux (x86-64 and
|
|
36
|
+
ARM64, glibc), macOS (Apple silicon and Intel) and Windows (x86-64). One wheel
|
|
37
|
+
per platform serves every supported Python version. On other
|
|
38
|
+
platforms pip builds from source, which needs Rust, a C/C++ compiler, Git and
|
|
39
|
+
network access for the pinned dependencies.
|
|
40
|
+
|
|
41
|
+
## Quick start
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
import puzzlekit
|
|
45
|
+
|
|
46
|
+
result = puzzlekit.solve("https://puzz.link/p?slither/3/2/h17d")
|
|
47
|
+
|
|
48
|
+
print(result.status) # unique
|
|
49
|
+
print(result.to_pzpr()) # puzzle and answer in pzpr FileIO format
|
|
50
|
+
print(result.to_trace_url()) # open the answer in pzpr-trace
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
pzprv3.1
|
|
55
|
+
slither
|
|
56
|
+
2
|
|
57
|
+
3
|
|
58
|
+
. . 1
|
|
59
|
+
2 . 3
|
|
60
|
+
0 0 0
|
|
61
|
+
0 0 0
|
|
62
|
+
1 1 -1 -1
|
|
63
|
+
1 -1 -1 1
|
|
64
|
+
1 -1 -1
|
|
65
|
+
-1 1 1
|
|
66
|
+
1 1 1
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
```text
|
|
70
|
+
https://pzpr-trace.net/p?state=K6gqKCoz1jPkKs7JLMlILeIy4jLm0lPQUzBU4DICUsYKXAYKIAijDIEyumDEBWMgMbnAXEOIMiAFAA&slither/3/2/h12g3
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The trace link opens the puzzle in [pzpr-trace](https://pzpr-trace.net/) with
|
|
74
|
+
the solution already drawn.
|
|
75
|
+
|
|
76
|
+
### Input
|
|
77
|
+
|
|
78
|
+
`solve()` takes a single string. All of these are equivalent:
|
|
79
|
+
|
|
80
|
+
```python
|
|
81
|
+
puzzlekit.solve("https://puzz.link/p?slither/3/2/h17d") # puzz.link URL
|
|
82
|
+
puzzlekit.solve("?slither/3/2/h17d") # query only
|
|
83
|
+
puzzlekit.solve("slither/3/2/h17d") # bare path
|
|
84
|
+
puzzlekit.solve("https://pzpr-trace.net/p?slither/3/2/h17d") # trace link
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The host is ignored; only the puzzle path (`type/columns/rows/data`) matters.
|
|
88
|
+
A `state=` parameter in a trace link is skipped. The path starts with the
|
|
89
|
+
puzzle's URL token, such as `slither`, `nurikabe` or `yajilin`. The tokens
|
|
90
|
+
and aliases for each puzzle are in the [adapter guide](https://github.com/SmilingWayne/puzzlekit/blob/main/docs/ADAPTERS.md).
|
|
91
|
+
|
|
92
|
+
Dataset text, a puzzle type argument and legacy solver options (as in
|
|
93
|
+
PuzzleKit 0.3) are not accepted; `solve()` raises `ValueError` for them.
|
|
94
|
+
|
|
95
|
+
### Output
|
|
96
|
+
|
|
97
|
+
`solve()` returns a `PuzzleResult`:
|
|
98
|
+
|
|
99
|
+
| Member | Description |
|
|
100
|
+
| --- | --- |
|
|
101
|
+
| `status` | `unique`, `multiple`, `no_solution` or `unknown` (see below). |
|
|
102
|
+
| `has_solution` | `True`, `False`, or `None` when undetermined. |
|
|
103
|
+
| `unique` | `True` for one solution, `False` for several, `None` if unknown. |
|
|
104
|
+
| `is_solved` | `True` when the status is `unique`. |
|
|
105
|
+
| `board` | The cspuz board as a Python `dict` (cspuz's rendering format). |
|
|
106
|
+
| `board_json` | The same board as a JSON string. |
|
|
107
|
+
| `normalized_url` | The puzzle link after PuzzleKit's normalization. |
|
|
108
|
+
| `to_pzpr()` | Puzzle and answer in pzpr FileIO text. |
|
|
109
|
+
| `to_state()` | The compressed state used by pzpr-trace. |
|
|
110
|
+
| `to_trace_url()` | A pzpr-trace link that restores puzzle and answer. |
|
|
111
|
+
|
|
112
|
+
| Status | Meaning |
|
|
113
|
+
| --- | --- |
|
|
114
|
+
| `unique` | Exactly one solution. |
|
|
115
|
+
| `multiple` | Several solutions. Exports contain only the marks shared by all of them; the rest stay empty. |
|
|
116
|
+
| `no_solution` | The puzzle has no solution. |
|
|
117
|
+
| `unknown` | The solver could not determine uniqueness. |
|
|
118
|
+
|
|
119
|
+
`to_pzpr()`, `to_state()` and `to_trace_url()` work for `unique` and
|
|
120
|
+
`multiple` results of the supported puzzles below. For `no_solution` and
|
|
121
|
+
`unknown` they raise `ValueError`, as they do for puzzles without a verified
|
|
122
|
+
adapter. Unreadable or unsupported input raises `ValueError`; an internal
|
|
123
|
+
solver failure raises `RuntimeError`.
|
|
124
|
+
|
|
125
|
+
`board` is available for every puzzle the pinned backend can solve, even when
|
|
126
|
+
there is no pzpr export. `puzzlekit.supported_puzzles()` lists the backend's
|
|
127
|
+
coverage; this is wider than the verified list below.
|
|
128
|
+
|
|
129
|
+
## Supported puzzles
|
|
130
|
+
|
|
131
|
+
<!-- puzzle-summary:start -->
|
|
132
|
+
PuzzleKit currently supports **137** of the **346** puzzle types registered in pzpr. [puzzlekit-dataset](https://github.com/SmilingWayne/puzzlekit-dataset) holds 39,405 problems (33,692 with answers) for 77 of them.
|
|
133
|
+
<!-- puzzle-summary:end -->
|
|
134
|
+
|
|
135
|
+
The [puzzle table](https://github.com/SmilingWayne/puzzlekit/blob/main/docs/PUZZLES.md) lists every pzpr puzzle with its support
|
|
136
|
+
status, dataset size and largest board. The names are pzpr IDs, so they can be
|
|
137
|
+
pasted straight into pzpr-trace.
|
|
138
|
+
The [adapter guide](https://github.com/SmilingWayne/puzzlekit/blob/main/docs/ADAPTERS.md) gives each puzzle's URL tokens, answer
|
|
139
|
+
marks and known limits.
|
|
140
|
+
|
|
141
|
+
"Supported" means a verified adapter: URL solving, native pzpr FileIO and
|
|
142
|
+
pzpr-trace state, checked against real puzzles and the custom
|
|
143
|
+
[pzprjs](https://github.com/SmilingWayne/pzprjs-trace) used by pzpr-trace.
|
|
144
|
+
|
|
145
|
+
## Upgrading from 0.3
|
|
146
|
+
|
|
147
|
+
0.4 is a rewrite. The OR-Tools solvers and the dataset-text interface were
|
|
148
|
+
removed in favor of the cspuz backend and puzzle URLs. `solve()` now takes a
|
|
149
|
+
URL and returns a `PuzzleResult`. Pin `puzzlekit<0.4` if you depend on the
|
|
150
|
+
old API.
|
|
151
|
+
|
|
152
|
+
## Related projects
|
|
153
|
+
|
|
154
|
+
- [puzz.link](https://puzz.link/) and [pzprjs](https://github.com/robx/pzprjs) — the puzzle player and the
|
|
155
|
+
pzpr format PuzzleKit reads and writes.
|
|
156
|
+
- [pzpr-trace](https://pzpr-trace.net/) — view and replay puzzle states; the target of `to_trace_url()`.
|
|
157
|
+
- [cspuz_core](https://github.com/semiexp/cspuz_core) — the Rust constraint solver and puzzle models PuzzleKit
|
|
158
|
+
builds on, and [cspuz-solver2](https://github.com/semiexp/cspuz-solver2), a web solver built on it.
|
|
159
|
+
- [Penpa+](https://github.com/swaroopg92/penpa-edit) — a general puzzle editor and solver-checker.
|
|
160
|
+
- [puzzlekit-dataset](https://github.com/SmilingWayne/puzzlekit-dataset) — about 40,000 puzzle instances used to test PuzzleKit.
|
|
161
|
+
- [puzzlekit-web](https://github.com/SmilingWayne/puzzlekit-web) — a step-by-step, explainable solver in the browser.
|
|
162
|
+
|
|
163
|
+
## Development
|
|
164
|
+
|
|
165
|
+
```sh
|
|
166
|
+
git clone https://github.com/SmilingWayne/puzzlekit
|
|
167
|
+
cd puzzlekit
|
|
168
|
+
python -m pip install -e '.[dev]'
|
|
169
|
+
python -m pytest -q
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Building needs Rust, a C/C++ compiler and Git. The [contributor guide](https://github.com/SmilingWayne/puzzlekit/blob/main/docs/CONTRIBUTING.md)
|
|
173
|
+
covers adding a puzzle, and [cspuz integration](https://github.com/SmilingWayne/puzzlekit/blob/main/docs/CSPUZ_INTEGRATION.md)
|
|
174
|
+
describes the backend bridge. [Releasing](https://github.com/SmilingWayne/puzzlekit/blob/main/docs/RELEASING.md) lists the release checklist.
|
|
175
|
+
|
|
176
|
+
## License
|
|
177
|
+
|
|
178
|
+
PuzzleKit is released under the [MIT license](https://github.com/SmilingWayne/puzzlekit/blob/main/LICENSE). The bundled cspuz
|
|
179
|
+
components have their own terms in [LICENSE-cspuz](https://github.com/SmilingWayne/puzzlekit/blob/main/LICENSE-cspuz).
|