{"id":19847469,"url":"https://github.com/olety/labyrinther","last_synced_at":"2025-05-01T21:32:30.243Z","repository":{"id":18991958,"uuid":"85757473","full_name":"olety/Labyrinther","owner":"olety","description":"Making and solving mazes with a genetic algorithm in Python!","archived":false,"fork":false,"pushed_at":"2023-05-01T21:36:59.000Z","size":2023,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-18T14:13:07.933Z","etag":null,"topics":["ai","flask","genetic-algorithm","labyrinth","labyrinth-generation","maze-generator","maze-solver","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olety.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-21T21:55:34.000Z","updated_at":"2023-07-13T23:45:53.000Z","dependencies_parsed_at":"2022-09-16T11:12:15.677Z","dependency_job_id":null,"html_url":"https://github.com/olety/Labyrinther","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/olety%2FLabyrinther","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olety%2FLabyrinther/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olety%2FLabyrinther/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olety%2FLabyrinther/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olety","download_url":"https://codeload.github.com/olety/Labyrinther/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224278363,"owners_count":17285080,"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":["ai","flask","genetic-algorithm","labyrinth","labyrinth-generation","maze-generator","maze-solver","python"],"created_at":"2024-11-12T13:14:26.022Z","updated_at":"2024-11-12T13:14:26.114Z","avatar_url":"https://github.com/olety.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Labyrinther - solving mazes with GA in Python\n\n## What and why?\n\nThis is a project developed for an undergraduate course \"Introduction to Artificial Intelligence\" in Wrocław University of Science and Technology. \n\nThe task given to us was to make a program that would solve mazes using a genetic algorithm, representing the path itself as a sequence of bits (2 bits is enough to encode top/bottom/left/right). \n\nThis application serves as a Flask server that gives you access to a console (`http://127.0.0.1:5000/`) allowing you to run different simulations. While you have to provide a maze that the algorithm will solve, there are some example mazes (2x2, 3x3, 5x5 and 10x10) in the project itself, in the directory `example_labyrinths`.\nIf you want to make your own maze, please look at the format that the mazes have in `example_labyrinths` or edit them to your liking. You can also generate mazes by using the [labyrith module](https://github.com/olety/Labyrinther/blob/master/genetic/genetic/labyrinth.py).\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"pictures/screenshot_setup.png\" alt=\"Algorithm set up page\" /\u003e\u003cbr/\u003e\n\u003csup\u003eSetting up the simulation\u003c/sup\u003e\n\u003c/p\u003e\n\nOnce simulated, you can view the performance of the resulting algorithm as well as the steps that it took (`http://127.0.0.1:5000/\u003csimulation-id\u003e`, ex: `http://127.0.0.1:5000/47`)\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"pictures/screenshot_res1.png\" alt=\"Showing set up variables and whether the algorithm won\" /\u003e\u003cbr/\u003e\n\u003csup\u003eResult page (1) - Set up values and winner status\u003c/sup\u003e\n\u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"pictures/screenshot_res2.png\" alt=\"Charts section\" /\u003e\u003cbr/\u003e\n\u003csup\u003eResult page (2) - Progression charts\u003c/sup\u003e\n\u003c/p\u003e\n\nIn the chart above, orange circle marks the start of the labyrinth, gold square - its end, red triangle means marks a point where one iteration of the algorithm died, and the purple X - the final point of the final iteration of the algorithm.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"pictures/screenshot_res3.png\" alt=\"The step sequence of the final algorithm\" /\u003e\u003cbr/\u003e\n\u003csup\u003eResult page (3) - Final algorithm steps\u003c/sup\u003e\n\u003c/p\u003e\n\n## How to run\n\n```\npip3 install -r requirements.txt\npython3 run.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folety%2Flabyrinther","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folety%2Flabyrinther","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folety%2Flabyrinther/lists"}