{"id":18763138,"url":"https://github.com/simre1/sliding-puzzle-sat","last_synced_at":"2025-09-14T07:21:23.509Z","repository":{"id":136854502,"uuid":"570150992","full_name":"Simre1/sliding-puzzle-sat","owner":"Simre1","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T13:23:15.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T05:22:21.829Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Simre1.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-24T13:00:29.000Z","updated_at":"2022-11-24T13:08:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"477d5e79-f033-4dd5-a50a-29311d480899","html_url":"https://github.com/Simre1/sliding-puzzle-sat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simre1%2Fsliding-puzzle-sat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simre1%2Fsliding-puzzle-sat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simre1%2Fsliding-puzzle-sat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simre1%2Fsliding-puzzle-sat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Simre1","download_url":"https://codeload.github.com/Simre1/sliding-puzzle-sat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239661789,"owners_count":19676409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T18:24:50.307Z","updated_at":"2025-02-19T12:44:31.598Z","avatar_url":"https://github.com/Simre1.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sliding-puzzle-sat\n\nHaskell program which calculates the sat formula for a 3x3 sliding puzzle game which can be solved with limboole.\n\n## The Game\n\nYou start with a 3x3 field of numbers from 0 to 8 where each number occurs once:\n\n```\n4 3 5\n9 2 3\n1 0 7\n```\n\nThe game rules state that you can only swap numbers with the `0` vertically and horizontically. The game goal is to rearrange the numbers in an ascending manner by swapping with the `0`:\n\n```\n1 2 3\n4 5 6\n7 8 0\n```\n\n## How to run\n\nYou need the Haskell build tool `cabal` and the Haskell compiler `ghc` (use ghcup to install them). Then you can run the program with:\n\n```\ncabal run sat-game \u003cnumber_of_steps\u003e \u003cfield1\u003e \u003cfield2\u003e ... \u003cfield9\u003e\n```\n\n`\u003cnumber_of_steps\u003e` tells the sat solver how many moves to try to find a solution.\n\n`\u003cfieldX\u003e` tells the sat solver where the numbers are in the initial state.\n\nThe field arguments are arranged in this manner:\n```\n\u003cfield1\u003e \u003cfield2\u003e \u003cfield3\u003e\n\u003cfield4\u003e \u003cfield5\u003e \u003cfield6\u003e\n\u003cfield7\u003e \u003cfield8\u003e \u003cfield9\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimre1%2Fsliding-puzzle-sat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimre1%2Fsliding-puzzle-sat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimre1%2Fsliding-puzzle-sat/lists"}