{"id":20926011,"url":"https://github.com/wlgs/life-simulation","last_synced_at":"2026-04-24T11:08:14.872Z","repository":{"id":119177581,"uuid":"436846235","full_name":"wlgs/life-simulation","owner":"wlgs","description":"Life simulation. Project for Object Oriented Programming course 2021/22 at AGH UST. It consists of simulating animals behaviour - such as eating and reproducing. Setting up different starting options differ in late-game results.","archived":false,"fork":false,"pushed_at":"2021-12-28T22:40:26.000Z","size":586,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-30T19:31:24.699Z","etag":null,"topics":["agh","agh-ust","life","life-simulation","oop","project","simulation"],"latest_commit_sha":null,"homepage":"","language":"Java","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/wlgs.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":"2021-12-10T04:10:27.000Z","updated_at":"2025-10-08T06:17:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"dae923d2-2ee3-4308-b624-77cd0d9c694c","html_url":"https://github.com/wlgs/life-simulation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wlgs/life-simulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlgs%2Flife-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlgs%2Flife-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlgs%2Flife-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlgs%2Flife-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wlgs","download_url":"https://codeload.github.com/wlgs/life-simulation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlgs%2Flife-simulation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32220359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["agh","agh-ust","life","life-simulation","oop","project","simulation"],"created_at":"2024-11-18T20:36:06.467Z","updated_at":"2026-04-24T11:08:14.825Z","avatar_url":"https://github.com/wlgs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":" \u003ch1 align=\"center\"\u003eLife simulation\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshots/game.jpg\" alt=\"Screenshot of the game\"\u003e\n\u003c/p\u003e\n\n  \u003cp align=\"center\"\u003e\n    A wild life simulation program, that shows how cruel some living (or programmed) things can be.\n\u003c/p\u003e\n\n\n## What is the Life Simulation about?\n\nLife simulation is a program written in Java that was a final project for our Object Oriented Programming Course at AGH UST. We had to implement some Darwin Life's rules into RNG generated world with animals that want to just reproduce, eat and survive the next day.\n\u003cbr\u003e\nFull project information (and its requirements) can be seen [here](https://github.com/apohllo/obiektowe-lab/tree/master/proj1).\n\n## Starting parameters\n\n* map width - the width of the map\n* map height - the height of the map\n* animals amount - the amount of animals spawned at start\n* start energy - the amount of energy that animals spawn with\n* move energy - the amount of energy it costs to move\n* plant energy - the amount of energy the plant gives to an animal\n* jungle ratio - percentage of the map which is covered by jungle\n* render delay - delay which is waited before rendering next era\n\n## Basic game rules:\n\n- Animal can act only if its energy is above 0\n- Animal can reproduce only if it has 50% or more energy (based on max capacity)\n- Animal gets greener the more it eats\n- Animal gets more blueish when it is close to death\n- Maximum of 2 plants can spawn each era (one in jungle area, one outside jungle area)\n- There can be more than 1 animal on each square\n- If there are more than 1 animal on square on which plant has grown - the plant is evenly distributed between most healthy animals\n- Only 1 pair of animals can reproduce per square per era\n- And some more not mentioned rules [(check them out!)](https://github.com/apohllo/obiektowe-lab/tree/master/proj1)\n\n## Screenshots\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshots/mainmenu.jpg\" alt=\"screenshot of main menu of the app\"\u003e\n    \u003cp align=\"center\"\u003e\n    Main menu, the first thing you see when starting the application.\n        \u003c/p\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshots/runninggame.jpg\" alt=\"screenshot of application running\"\u003e\n      \u003cp align=\"center\"\u003e\n    Application running and recording all the statistics, which you can export later on to a .csv file.\n    \u003c/p\u003e\n\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlgs%2Flife-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwlgs%2Flife-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlgs%2Flife-simulation/lists"}