{"id":24770480,"url":"https://github.com/kplanisphere/block-world-planning","last_synced_at":"2026-02-03T00:39:01.418Z","repository":{"id":273593944,"uuid":"920238254","full_name":"KPlanisphere/block-world-planning","owner":"KPlanisphere","description":"Artificial Inteligence Tecniques","archived":false,"fork":false,"pushed_at":"2025-01-21T19:59:51.000Z","size":1280,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T03:47:10.151Z","etag":null,"topics":["artificial-intelligence","artificial-intelligence-algorithms","block-world","block-world-problem","delve","dlv"],"latest_commit_sha":null,"homepage":"https://linktr.ee/planisphere.kgz","language":null,"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/KPlanisphere.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2025-01-21T19:56:04.000Z","updated_at":"2025-01-21T20:01:38.000Z","dependencies_parsed_at":"2025-01-21T20:46:09.871Z","dependency_job_id":null,"html_url":"https://github.com/KPlanisphere/block-world-planning","commit_stats":null,"previous_names":["kplanisphere/block-world-planning"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fblock-world-planning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fblock-world-planning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fblock-world-planning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fblock-world-planning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KPlanisphere","download_url":"https://codeload.github.com/KPlanisphere/block-world-planning/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245162195,"owners_count":20570692,"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":["artificial-intelligence","artificial-intelligence-algorithms","block-world","block-world-problem","delve","dlv"],"created_at":"2025-01-29T03:47:24.909Z","updated_at":"2026-02-03T00:39:01.391Z","avatar_url":"https://github.com/KPlanisphere.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Block World Planning with DLV\n\nThis repository contains a planning problem for the **Block World** domain, implemented using **DLV**. The goal is to manipulate blocks using logical rules and planning constraints.\n\n## 📌 Overview\n\nThe Block World consists of:\n- A set of **blocks** (`a`, `b`, `c`).\n- A **table** (`mesa`) as the initial resting place for all blocks.\n- Actions to **grasp, release, lift, and lower** blocks according to specific conditions.\n\nThe objective is to **stack the blocks in a specific order**, following logical constraints.\n\n## 📂 Files\n\n- **`file1.lp`** → Defines blocks and locations.\n- **`file2.plan`** → Specifies fluents, actions, and constraints.\n- **`file3.plan`** → Sets the initial state and the goal configuration.\n\n## 🛠 Requirements\n\n- **DLV Solver** (Download from: [DLV System](http://www.dlvsystem.com))\n- Command-line interface (CLI)\n\n## 🚀 Execution\n\n### 1️⃣ Running the Solver\n\nTo solve the planning problem, execute the following command:\n\n```bash\ndlv.mingw.exe file1.lp file2.plan file3.plan\n```\n\n### 2️⃣ Expected Output\n\nThe solver will generate an execution sequence to achieve the goal:\n\n```css\nAction: agarrar(a)\nAction: subir(a)\nAction: bajar(a, b)\n...\nGoal Reached: sobre(a, b), sobre(b, c), sobre(c, mesa)\n```\n\n## 🎯 Goal State\n\nThe desired final arrangement of blocks:\n\n\u003cp align= \"center\"\u003e\n    \u003cimg src=\"https://github.com/user-attachments/assets/7bc88e7b-6a30-4225-8983-77a06db0ed3d\" style=\"width: 20%; height: auto;\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkplanisphere%2Fblock-world-planning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkplanisphere%2Fblock-world-planning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkplanisphere%2Fblock-world-planning/lists"}