{"id":19924616,"url":"https://github.com/artemis-beta/landsim","last_synced_at":"2025-03-01T10:27:07.222Z","repository":{"id":81706025,"uuid":"111313119","full_name":"artemis-beta/landsim","owner":"artemis-beta","description":"Generate Terrain/Land Using Random Number Generation in Python ","archived":false,"fork":false,"pushed_at":"2020-06-17T23:10:29.000Z","size":1435,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T00:26:24.603Z","etag":null,"topics":["cities","python","simulation","terrain"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/artemis-beta.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-11-19T16:39:06.000Z","updated_at":"2020-06-17T23:10:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d0278f2-558a-4238-8ead-3f38a784a64d","html_url":"https://github.com/artemis-beta/landsim","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemis-beta%2Flandsim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemis-beta%2Flandsim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemis-beta%2Flandsim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemis-beta%2Flandsim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artemis-beta","download_url":"https://codeload.github.com/artemis-beta/landsim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241351863,"owners_count":19948740,"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":["cities","python","simulation","terrain"],"created_at":"2024-11-12T22:18:18.911Z","updated_at":"2025-03-01T10:27:07.215Z","avatar_url":"https://github.com/artemis-beta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# landsim\nGenerate Terrain/Land Using Random Number Generation in Python! To use this module:\n```\nimport landsim as ls\n\nx, y = 30, 30                          # Create a map of size 30x30\n                                       \nmy_map = ls.map(x, y, \n                n_cities=20, \n                n_water=5)             # Create map with 20 cities and\n                                       # 5 water sources\n\nmy_map.add_water_source()              # Randomly add another water source\n\nmy_map.add_city()                      # Randomly add a new city\n\nmy_map.print_map()                     # Print map to terminal\n\nmy_map.print_layer('cities')           # Print only a layer ('land'/'cities')\n                                       # the cities layer displays city ids\n\nmy_map.get_city_info(i)                # Get info for city id=i\n\nmy_map.build_station(i)                # Build at town id=i\n\n```\n\n## Map Display\n\n![Alt text](./example.png?raw=true \"An Example Map\")\n\n## Cities View with IDs\n\n\n![Alt text](./cities_view.png?raw=true \"Cities with IDs\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemis-beta%2Flandsim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartemis-beta%2Flandsim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemis-beta%2Flandsim/lists"}