{"id":21903089,"url":"https://github.com/rebornplusplus/catch-ghost","last_synced_at":"2025-03-22T06:29:49.369Z","repository":{"id":103958118,"uuid":"320842825","full_name":"rebornplusplus/catch-ghost","owner":"rebornplusplus","description":"Catch the ghost walking in your room late at night huhuhu","archived":false,"fork":false,"pushed_at":"2020-12-13T07:25:19.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T07:09:31.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rebornplusplus.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":"2020-12-12T13:56:28.000Z","updated_at":"2020-12-13T07:27:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5e7278d-aaa1-4e9c-a59c-395857f499bb","html_url":"https://github.com/rebornplusplus/catch-ghost","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/rebornplusplus%2Fcatch-ghost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebornplusplus%2Fcatch-ghost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebornplusplus%2Fcatch-ghost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebornplusplus%2Fcatch-ghost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rebornplusplus","download_url":"https://codeload.github.com/rebornplusplus/catch-ghost/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244918500,"owners_count":20531682,"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":[],"created_at":"2024-11-28T15:25:35.629Z","updated_at":"2025-03-22T06:29:49.346Z","avatar_url":"https://github.com/rebornplusplus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Catch the Ghost!\n_A homework for CS318_\n\nThere's a ghost walking in your room late at night and making noises. Instead of being all\nnervous about it, you manned up and picked up a ghost sensor. You'll teach that ghost a lesson\ntoday. You can check a certain area in your room. The sensor will display some color indicating\nhow far the ghost is:\n\n* RED: Ghost is very close.\n* ORANGE: Ghost is not far away.\n* GREEN: Ghost is very far away.\n\nAlso, that sensor is very old. You haven't used it after catching the last ghost Ulubama de\nPariso. So there might be some glitch with the colors. The sensor can display some wrong colors\na few times.\n\nYou have a ghost buster too. But it's battery level is very low and the charge it has, the \nbuster can be used only once. So, be very sure before you use the buster in some area in your\nroom. Because after the buster is used, if you missed the ghost, the ghost will be very angry\nthat you tried to bust him (the ghost doesn't like the buster at all) and will raise havoc in\nyour room. Maybe he'll sleep in your bed even. You don't want that, do you?\n\nThere are certain time frame shifts. After each shift, the ghost will move to an adjacent place\nor stay at the same place. But most times, the ghost will move to some cell with a manhattan\ndistance of 1. A few times, the ghost will move diagonally or stay at the same place.\n\nNow now, soldier. You have only one mission. Catch it. Catch this ghost and let's teach him a\nlesson today. I'll show you the probabilities and you move the time frames and check some \npositions in each time frame. Geronimo!\n\n### Dependencies\n\n* You'll need a Linux machine.\n* `g++`, `python3`.\n* [`pygame` module from `python`](https://www.pygame.org/wiki/GettingStarted).\n\n### Run\n\nExecute `run.sh`.\n\n### Hacks\n\nIf you want a smaller grid, say 5x5, go over to `settings.py` and change `GRID_SZ = 9` to\n`GRID_SZ = 5`.\n\n### Notes\n\nHidden Markov Model is used to calculate the probabilities. \n\nIf you want particle filtering, do the following:\n* Go over to `def.h`, un-comment these 3 lines:\n```cpp\n// #ifndef PARTICLE\n// #define PARTICLE\n// #endif\n```\n* Go over to `particle.h` and change the value of `GC` to any value you seem fit:\n```cpp\nconst static int GC = 5;\t// particle count\n```\n\n### Author\n\nRafid Bin Mostofa \u003cbr/\u003e\nDec 12, 2020.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frebornplusplus%2Fcatch-ghost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frebornplusplus%2Fcatch-ghost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frebornplusplus%2Fcatch-ghost/lists"}