{"id":20960207,"url":"https://github.com/instance01/continuous-lunarlander-cpp","last_synced_at":"2026-04-20T21:36:45.965Z","repository":{"id":68070208,"uuid":"313102410","full_name":"instance01/continuous-lunarlander-cpp","owner":"instance01","description":"C++ implementation of the continuous LunarLander environment.","archived":false,"fork":false,"pushed_at":"2021-01-13T11:50:08.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T11:27:12.852Z","etag":null,"topics":["gym","gym-environment","gym-environments","lunar-lander","openai-gym","reinforcement-learning"],"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/instance01.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}},"created_at":"2020-11-15T19:01:56.000Z","updated_at":"2021-01-13T11:50:11.000Z","dependencies_parsed_at":"2023-02-24T00:31:08.665Z","dependency_job_id":null,"html_url":"https://github.com/instance01/continuous-lunarlander-cpp","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"f3b459fee0da134e449a73fb2e2fe53cbb62bf6f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/instance01/continuous-lunarlander-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance01%2Fcontinuous-lunarlander-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance01%2Fcontinuous-lunarlander-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance01%2Fcontinuous-lunarlander-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance01%2Fcontinuous-lunarlander-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/instance01","download_url":"https://codeload.github.com/instance01/continuous-lunarlander-cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance01%2Fcontinuous-lunarlander-cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32067620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["gym","gym-environment","gym-environments","lunar-lander","openai-gym","reinforcement-learning"],"created_at":"2024-11-19T01:58:03.184Z","updated_at":"2026-04-20T21:36:45.949Z","avatar_url":"https://github.com/instance01.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a C++ reimplementation of OpenAI's gym environment LunarLander (the continuous version).\nIt works but definitely needs more work.\n\nSince it supports model-based approaches such as AlphaZero (which requires the environment to be clonable for the MCTS), it unfortunately requires a box2d fork that supports getting and setting the sleep time of bodies.\nThe fork is linked in this repository.\n\n## Installation\n\nTo use it, copy both `lunar_lander.cpp` and `lunar_lander.hpp` to your project and add the box2d fork as a dependency.\nAn example for cmake can be found [here](https://github.com/instance01/GRAB0/blob/master/src/CMakeLists.txt).\n\nAfter you're done, do `cmake` and `cmake --build .`.\n\n## Usage\n\nThe API follows the standard OpenAI gym API (except for reset(), which requires a generator).\nAs for the generator, I'm open for PRs that move it to the constructor.\n\n```\nstd::vector\u003cfloat\u003e reset(std::mt19937 \u0026generator);\nstd::tuple\u003cstd::vector\u003cfloat\u003e, double, bool\u003e step(std::vector\u003cdouble\u003e \u0026action);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstance01%2Fcontinuous-lunarlander-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstance01%2Fcontinuous-lunarlander-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstance01%2Fcontinuous-lunarlander-cpp/lists"}