{"id":23694857,"url":"https://github.com/Badawy403/BreakingBlocks","last_synced_at":"2025-09-02T22:31:10.407Z","repository":{"id":210969794,"uuid":"727874886","full_name":"0xBadawy/BreakingBlocks","owner":"0xBadawy","description":" AI Puzzle Solver is a Python application that uses Pygame  The main focus is on searching algorithms such as Depth-First Search, Breadth-First Search, A*, Uniform Cost Search, and others","archived":false,"fork":false,"pushed_at":"2024-12-19T06:54:22.000Z","size":29036,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-19T07:32:16.845Z","etag":null,"topics":["algorithms","bfs","dfs","game","pygame","python","searching-algorithms"],"latest_commit_sha":null,"homepage":"","language":"Python","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/0xBadawy.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":"2023-12-05T18:53:04.000Z","updated_at":"2024-12-19T06:54:26.000Z","dependencies_parsed_at":"2024-07-05T22:59:46.354Z","dependency_job_id":null,"html_url":"https://github.com/0xBadawy/BreakingBlocks","commit_stats":null,"previous_names":["mohamed-badawy-sayed/breakingblocks","0xbadawy/breakingblocks"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xBadawy%2FBreakingBlocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xBadawy%2FBreakingBlocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xBadawy%2FBreakingBlocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xBadawy%2FBreakingBlocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xBadawy","download_url":"https://codeload.github.com/0xBadawy/BreakingBlocks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231814784,"owners_count":18430590,"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":["algorithms","bfs","dfs","game","pygame","python","searching-algorithms"],"created_at":"2024-12-30T04:30:14.764Z","updated_at":"2025-09-02T22:31:08.816Z","avatar_url":"https://github.com/0xBadawy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n    \n   \n\u003cdiv align=\"center\"\u003e\n\n\u003cimg height=\"120\" src=\"https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp\"\u003e\n\u003cimg height=\"120\" src=\"https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg\"\u003e\n\u003cimg height=\"120\" src=\"https://registry.npmmirror.com/@lobehub/assets-emoji-anim/1.0.0/files/assets/robot.webp\"\u003e\n\n\u003ch1\u003eAI Puzzle Solver\u003c/h1\u003e\n\n\u003c/div\u003e\n \n\n\nThis GitHub repository contains Python implementations of various puzzle-solving algorithms for a 10x10 grid puzzle. The puzzle involves filling a grid with colored blocks and finding the optimal sequence of moves to clear the last row. The implemented algorithms include\n## Introduction\n\nThe AI Puzzle Solver is a Python application that uses Pygame for graphical representation and implements various search algorithms to solve puzzles. The main focus is on searching algorithms such as Depth-First Search, Breadth-First Search, A*, Uniform Cost Search, and others.\n\n## Algorithms\n\nThe following search algorithms are implemented:\n \n- **Depth-First Search (DFS)**\n- **Breadth-First Search (BFS)**\n- **Depth-Limited Search (DLS)**\n- **Iterative deepening depth-first search (IDLS)**\n- **Uniform Cost Search (UCS)**\n- **Greedy Best-First Search**\n- ***A* Search**\n\n## screenshot from game\n\n[![AI Puzzle Solver](https://github.com/Mohamed-badawy-sayed/BreakingBlocks/blob/fbaf9eec6c8483f05f178d9e3b04d627e00e2b27/Image/repo/image%20num%20(2).png)]()\n[![AI Puzzle Solver](https://github.com/Mohamed-badawy-sayed/BreakingBlocks/blob/fbaf9eec6c8483f05f178d9e3b04d627e00e2b27/Image/repo/image%20num%20(4).png)]()\n[![AI Puzzle Solver](https://github.com/Mohamed-badawy-sayed/BreakingBlocks/blob/fbaf9eec6c8483f05f178d9e3b04d627e00e2b27/Image/repo/image%20num%20(3).png)]()\n[![AI Puzzle Solver](https://github.com/Mohamed-badawy-sayed/BreakingBlocks/blob/fbaf9eec6c8483f05f178d9e3b04d627e00e2b27/Image/repo/image%20num%20(1).png)]()\n\n\n\n\n  \n## Algorithm analysis and comparison\n[![AI Puzzle Solver](https://github.com/Mohamed-badawy-sayed/BreakingBlocks/blob/2121745e78d4a0974f6b221df179458fdfd0afbe/Image/repo/Picture7.png)]()\n\n## Algorithm analysis and comparison\n[![AI Puzzle Solver](https://github.com/Mohamed-badawy-sayed/BreakingBlocks/blob/9e84c77e837cda3b7a935978626602ce2e8ff738/Image/repo/Picture3.png)]()\n\n\n\n## Algorithm analysis and comparison\n[![AI Puzzle Solver](https://github.com/Mohamed-badawy-sayed/BreakingBlocks/blob/9e84c77e837cda3b7a935978626602ce2e8ff738/Image/repo/Picture4.png)]()\n\n\n## Algorithm analysis and comparison\n[![AI Puzzle Solver](https://github.com/Mohamed-badawy-sayed/BreakingBlocks/blob/9e84c77e837cda3b7a935978626602ce2e8ff738/Image/repo/Picture5.png)]()\n\n\n## Algorithm analysis and comparison\n[![AI Puzzle Solver](https://github.com/Mohamed-badawy-sayed/BreakingBlocks/blob/2121745e78d4a0974f6b221df179458fdfd0afbe/Image/repo/Picture8.png)]()\n\n\n\n## \n\n| Name       | Greedy | A*    | BFS    | DFS    | DLS    | IDLS   | UCS    |\n|------------|--------|-------|--------|--------|--------|--------|-------|\n| Total State| 51     | 18635 | 136975 | 217    | 648443 | 501328 | 107538|\n| Path       | 5      | 5     | 5      | 17     | 6      | 5      | 5     |\n| Space (KB) | 19     | 7279  | 53498  | 84     | 253298 | 195831 | 42030 |\n| Time (ms)  | 2      | 1943  | 15604  | 12     | 25444  | 19817  | 12855 |\n| Complete   | YES    | YES   | YES    | YES    | NO     | YES    | YES   |\n| Optimal    | YES    | YES   | YES    | NO     | NO     | YES    | YES   |\n\n\n## Agent Specification ( PEAS )\n\n\n| Aspect              | Description                                                                               |\n|---------------------|-------------------------------------------------------------------------------------------|\n| **Performance Measure** | - The number of squares cleared in a given time.                                           |\n|                      | - The time taken to complete the level and space.                                          |\n| **Environment**         | - A grid of colored squares linked in a top, right, left, and bottom manner.               |\n|                      | - The state of the environment changes as the agent makes moves to destroy interconnected squares.|\n| **Actuators**           | - Select and destroy squares in the grid.                                                  |\n| **Sensors**             | - The colors of the squares and their connectivity.                                        |\n|                      | - Look at the last row to see if it is complete or not.                                    |\n\n \n\n## contributors \n\u003ca href=\"https://github.com/Mohamed-badawy-sayed/BreakingBlocks/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=Mohamed-badawy-sayed/BreakingBlocks\" /\u003e\n\u003c/a\u003e\n\n## Tools\n- Python 3.x\n- Pygame\n\nInstall dependencies using:\n\n```bash\npip install pygame\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBadawy403%2FBreakingBlocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBadawy403%2FBreakingBlocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBadawy403%2FBreakingBlocks/lists"}