{"id":18725610,"url":"https://github.com/orshahar91/lights","last_synced_at":"2025-11-11T19:30:13.120Z","repository":{"id":140576142,"uuid":"532318878","full_name":"Orshahar91/Lights","owner":"Orshahar91","description":"SFML mini-game","archived":false,"fork":false,"pushed_at":"2022-09-03T18:00:19.000Z","size":221,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T13:17:54.518Z","etag":null,"topics":["bfs-algorithm","edges","game","lights","mini-game","oop","sfml","sfml-game","vertex"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Orshahar91.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":"2022-09-03T16:47:32.000Z","updated_at":"2023-04-11T15:53:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7e89188-41bb-495c-bb14-83819088759e","html_url":"https://github.com/Orshahar91/Lights","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/Orshahar91%2FLights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orshahar91%2FLights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orshahar91%2FLights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orshahar91%2FLights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Orshahar91","download_url":"https://codeload.github.com/Orshahar91/Lights/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239592980,"owners_count":19664855,"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":["bfs-algorithm","edges","game","lights","mini-game","oop","sfml","sfml-game","vertex"],"created_at":"2024-11-07T14:11:03.396Z","updated_at":"2025-11-11T19:30:13.050Z","avatar_url":"https://github.com/Orshahar91.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :bulb:Lights Game:bulb:\n\n* The project was created in order to practice Data structures, Iterator, STL algorithms and SFML.\n\n## Prerequisites:\n* SFML folder to be placed in C:\\SFML, can be downloaded from : https://www.sfml-dev.org/download/sfml/2.5.1/\n\n## Guidelines\n* Run this project in Visual Studio\n* Make sure SFML folder is placed under C:\\SFML\n* Run the Game.\n* Enjoy :smiley:\n\n## Gameplay\n* Use the Left/Right Mouse click to rotate the light bulbs clockwise/counter-clockwise.\n* The center light bulb provides 'Power'.\n* The goal is to provide power to all the lightbulbs to advance to the next stage. \n\n## Levels\n* File is Levels.txt\n* All the stages are written in a single file.\n* Every stage is seperated with a single line.\n* Every light bulb is represented by 'O' character, 'M' represents the center light bulb that alawys has power.\n* Right next to these characters there is a digit(1-6) to represent the number of edges for the vertex.\n* After the digit there are characters to determine the direction of each vertex.\n* Example: O2RL - vertex with 2 edges, one is facing right and the other is facing left.\n\n## Data Structures \u0026 Algorithms\n* Used a vecotr of unique pointers for the vertexes and the edges\n* Each vertex has a vector of *vertex for its neigbors.\n* Used a bidirectional queue in order to flag an alreday visited vertex.\n\n## Notes\n*This is a C++ CMAKE project, created with Visual Studio 2019.*\n\n*Written by : Or Shahar*\n\n![Lights](/Images/1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forshahar91%2Flights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forshahar91%2Flights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forshahar91%2Flights/lists"}