{"id":20629198,"url":"https://github.com/dcts/qwop-ai","last_synced_at":"2025-03-08T17:21:16.296Z","repository":{"id":101464848,"uuid":"227113441","full_name":"dcts/qwop-AI","owner":"dcts","description":"Algorithm that learns to play QWOP game.","archived":false,"fork":false,"pushed_at":"2019-12-10T12:29:15.000Z","size":298,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T11:13:16.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/dcts.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":"2019-12-10T12:19:46.000Z","updated_at":"2022-04-08T19:43:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"012e3fae-382d-48c3-ba45-2eb13a55d092","html_url":"https://github.com/dcts/qwop-AI","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/dcts%2Fqwop-AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Fqwop-AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Fqwop-AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Fqwop-AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcts","download_url":"https://codeload.github.com/dcts/qwop-AI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242582608,"owners_count":20153279,"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-16T13:42:03.716Z","updated_at":"2025-03-08T17:21:16.273Z","avatar_url":"https://github.com/dcts.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QWOP AI\n\nRepo to make an algorithm learn how to play the [QWOP game](http://www.foddy.net/Athletics.html). Work in progress. The algorithm already accomplished to finish the run but its very slow and shitty.\n![QWOP-algorithm](https://user-images.githubusercontent.com/44790691/70528993-ccc43b00-1b4f-11ea-991d-dfbf28e70132.png)\n\n### Evolution\nIdea is to make an evolutionary algorithm\n- a keypress pattern represents an individual of a population\n- fitness function is the score/time\n- random starting point -\u003e mutation and reproduction to increase fitness\n\n### Problems to solve\n- [x] control the keyboard remotely (done in `ruby` with [selenium-webdriver gem](https://rubygems.org/gems/selenium-webdriver/versions/3.142.6))\n- [ ] get game data (current score being the most important one)\n  - capture screenshot and use image processing to get text data\n  - copy game as described [here](https://github.com/qema/qwop-ai/issues/1)\n- [ ] design gene structure (parameters modifyable by algorithm)\n  - length of pattern\n  - keypresses\n  - pause inbetween the keypresses\n\n### Files\n- **`run.rb`**: main file which runs the chrome webdriver and executes the keypresses\n- **`screenshot.rb`**: snippet on how to make a screenshot (to capture score -\u003e image processing?)\n\n### Running the Script\nyou need to have installed **ruby** as well as **chrome webdriver**, **chrome browser** itself and the **selenium-webdriver** gem.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcts%2Fqwop-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcts%2Fqwop-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcts%2Fqwop-ai/lists"}