{"id":19544146,"url":"https://github.com/sunset1995/trex-game-agent","last_synced_at":"2026-06-13T08:31:24.103Z","repository":{"id":94182848,"uuid":"84914226","full_name":"sunset1995/trex-game-agent","owner":"sunset1995","description":"Designed course project for Scratch and Python @ NCTU","archived":false,"fork":false,"pushed_at":"2017-04-13T10:55:22.000Z","size":14,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-26T05:41:32.246Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunset1995.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-14T06:36:40.000Z","updated_at":"2022-06-20T14:18:14.000Z","dependencies_parsed_at":"2023-03-15T02:02:31.434Z","dependency_job_id":null,"html_url":"https://github.com/sunset1995/trex-game-agent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sunset1995/trex-game-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunset1995%2Ftrex-game-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunset1995%2Ftrex-game-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunset1995%2Ftrex-game-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunset1995%2Ftrex-game-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunset1995","download_url":"https://codeload.github.com/sunset1995/trex-game-agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunset1995%2Ftrex-game-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34278153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-11T03:24:51.042Z","updated_at":"2026-06-13T08:31:24.086Z","avatar_url":"https://github.com/sunset1995.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trex-game-agent\nDesigned course project for Scratch and Python @ NCTU\n\nReading screenshot and controling keyboard to play trex game.  \nHere are some place to play this time-killing game:\n- [T-Rex Runner](http://www.trex-game.skipser.com/)\n- [Running T-Rex](http://apps.thecodepost.org/trex/trex.html)\n- [T-Rex Game](https://scratch.mit.edu/projects/98506770/) on Scratch\n\nThis agent can only play well on [T-Rex Runner](http://www.trex-game.skipser.com/) version. To play other version, paramter should be tuned manually again.  \nThis agent can play forever, barring accidents.  \n\n## Installation\nRun `pip3 install -r requirements.txt` to install the dependencies.  \nSome extra effort may be needed in order to install [PIL](http://www.pythonware.com/products/pil/) and [pyautogui](https://pyautogui.readthedocs.io/en/latest/install.html) package.  \n\n## Let's Play\n1. Open the game, make sure that the entire playground is visible.\n2. Fire `python3 play.py`\n\nAfter lossing the game, you should manually close the running `play.py` and restart it for next round if you want.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunset1995%2Ftrex-game-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunset1995%2Ftrex-game-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunset1995%2Ftrex-game-agent/lists"}