{"id":27734527,"url":"https://github.com/anod/prolog-game-cars","last_synced_at":"2026-01-24T17:33:38.210Z","repository":{"id":2095099,"uuid":"3035601","full_name":"anod/prolog-game-cars","owner":"anod","description":"The Cars game in Visual Prolog 7.3","archived":false,"fork":false,"pushed_at":"2011-12-22T18:55:21.000Z","size":14394,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-28T13:12:29.686Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Prolog","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jaywengrow/sample-app","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anod.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}},"created_at":"2011-12-22T18:02:34.000Z","updated_at":"2014-03-29T21:32:52.000Z","dependencies_parsed_at":"2022-09-08T03:00:14.893Z","dependency_job_id":null,"html_url":"https://github.com/anod/prolog-game-cars","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anod/prolog-game-cars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anod%2Fprolog-game-cars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anod%2Fprolog-game-cars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anod%2Fprolog-game-cars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anod%2Fprolog-game-cars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anod","download_url":"https://codeload.github.com/anod/prolog-game-cars/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anod%2Fprolog-game-cars/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28732635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-04-28T13:12:27.861Z","updated_at":"2026-01-24T17:33:38.194Z","avatar_url":"https://github.com/anod.png","language":"Prolog","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Cars\r\n\r\nThis is study project for course \"Programming Languages\" @ Afeka College of Engineering.\r\n\r\nGame with map of city, random roads, AI and User driven cars and traffic lights.\r\n\r\nMain goal: The player should reach destination for the minimum time.\r\n\r\n## Highlights\r\n\r\n* Visual Prolog 7.3\r\n* Randomized Prim algorithm for building maze\r\n* BFS algorith to find short way between 2 points\r\n\r\n## Information\r\n\r\n\r\n### Explanation of usage :\r\n\r\n* To run the game after compiling click File -\u003e New (F7)\r\n\r\nAt the beginning you will see Main Menu of the game.\r\n\r\n### Navigation:\r\n* Main Menu - arrows Up,Down to select between items, Enter button to choose an item\r\n* Game - Esc button to pause the game, Space or Enter to Continue\r\n* Game Finish screen - Space or Enter show main menu\r\n* Top Ten screen - Space or Enter in order to return to the main menu\r\n\r\n### Control of the car:\r\n* User car is yellow, need to reach green destination point\r\n* W,A,S,D as described in requirements\r\n* To turn on the road from one cell to another, car should be completely inside a cell.\r\n\r\n### Implementation highlights:\r\n\r\n* Random roads are generated by Randomized Prim algorithm\r\n* Way between 2 points calculated using BFS algorithm. Each cell is the node of the graph that connected one to each other\r\n* Every violation of traffic rules gives +10 seconds to the total times.\r\n* There is 2 violation rules: user car drive on red light and user car drive to cell with other car in the same direction \r\n* top ten stored in file: top.fac and restored each run\r\n\r\n### Classes overview:\r\n\r\n* lawn - main form where game is drawn\r\n* gameController - receive events from lawn\r\n* cityGenerator - generate map, buildings and random roads (using prim algorithm)\r\n* cityTrafficLights - create traffic lights on junctions in the city and mange states of them\r\n* car - basic car implementation\r\n* car/carAI - computer car extends car\r\n* car/carUser - user driven car, extends car\r\n* carManager - create and handle car objects\r\n* mapBFS - calculate way between 2 cells on the map\r\n* draw - draw current screen on the lawn form\r\n* topTenManager - manage list of top ten\r\n* utils - helpers used by multiple classes\r\n\r\n## Author\r\n\r\nAlex Gavrishev, 2011","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanod%2Fprolog-game-cars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanod%2Fprolog-game-cars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanod%2Fprolog-game-cars/lists"}