{"id":16673209,"url":"https://github.com/ph-7/carrots-rabbits-wolves","last_synced_at":"2025-05-14T09:15:03.970Z","repository":{"id":190373553,"uuid":"495785876","full_name":"pH-7/carrots-rabbits-wolves","owner":"pH-7","description":"🗺 World Simulation Challenge (inspired by Francesco Cesarini's Erlang programming concepts). The world is inhabited by carrots that grow from the earth, rabbits that feed on carrots, and wolves that hunt rabbits in an intricate food chain.","archived":false,"fork":false,"pushed_at":"2024-03-06T08:48:54.000Z","size":11168,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-14T09:14:30.647Z","etag":null,"topics":["carrots","carrots-rabbits","carrots-rabbits-wolves","coding-challenge","javascript-coding-challenges","javascript-game","problem-solving","problem-solving-algorithms","problem-solving-exercise","rabbits","rabbits-wolves","wolf","wolves","world-simulation","world-simulation-puzzle"],"latest_commit_sha":null,"homepage":"https://github.com/pH-7/carrots-rabbits-wolves","language":"JavaScript","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/pH-7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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},"funding":{"ko_fi":"phenry","github":"pH-7"}},"created_at":"2022-05-24T11:04:42.000Z","updated_at":"2025-02-02T03:38:09.000Z","dependencies_parsed_at":"2024-12-25T22:16:39.486Z","dependency_job_id":null,"html_url":"https://github.com/pH-7/carrots-rabbits-wolves","commit_stats":null,"previous_names":["ph-7/carrots-rabbits-wolves"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2Fcarrots-rabbits-wolves","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2Fcarrots-rabbits-wolves/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2Fcarrots-rabbits-wolves/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2Fcarrots-rabbits-wolves/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pH-7","download_url":"https://codeload.github.com/pH-7/carrots-rabbits-wolves/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110449,"owners_count":22016392,"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":["carrots","carrots-rabbits","carrots-rabbits-wolves","coding-challenge","javascript-coding-challenges","javascript-game","problem-solving","problem-solving-algorithms","problem-solving-exercise","rabbits","rabbits-wolves","wolf","wolves","world-simulation","world-simulation-puzzle"],"created_at":"2024-10-12T12:25:14.628Z","updated_at":"2025-05-14T09:15:03.942Z","avatar_url":"https://github.com/pH-7.png","language":"JavaScript","funding_links":["https://ko-fi.com/phenry","https://github.com/sponsors/pH-7"],"categories":[],"sub_categories":[],"readme":"# 🐰 The Rabbits, Wolves, and Carrots' World 🐺\n\n_The world is inhabited by carrots, rabbits, and wolves!_ 🌎\n\n\n## World Problem\n\nRabbits would roam this world eating car- rots that grew in random patches. When they had eaten enough carrots, the rabbits would get fat and split in two. Wolves ran around eating up the rabbits; if they managed to catch and eat enough rabbits, they would also get fat and split. Rabbits and wolves within a certain distance of each other would broadcast information on food and predators. If a rabbit found a carrot patch, other rabbits would quickly join him. If a wolf found a rabbit, the pack would start chasing it.\n\n\n## Specification / Requirement\n\n- You will need to install NodeJS (`v14` or newer) and npm on your machine for testing it (if it isn't the case).\n  - If needed, download them both here: https://nodejs.org/en/download\n\n\n## How to run the project\n\n- At the location to which the project has been unzipped,\n  - Run `npm install` to install the dependencies.\n  - Then, run `node src/cli.js` (or just `npm start`).\n  - See the results shown in the command line.\n  - See the results in `results.txt`\n\n\n## Running unit tests\n\n```console\nnpm run test\n```\n\nOr with `npx`\n\n```console\nnpx ava\n```\n\n## Simulation Results\n\nAvailable in both `results.txt` and `world-simulation-results.png` files.\n\n![Early Simulation Graphic Results](./world-simulation-results.png)\n\n![Later Simulation Graphic Results](./late-world-simulation-results.png)\n\nHappy Hunting! 🥕🐇🐺\n\n## License\n\nDistributed under _[MIT](https://opensource.org/licenses/MIT)_ license 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph-7%2Fcarrots-rabbits-wolves","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fph-7%2Fcarrots-rabbits-wolves","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph-7%2Fcarrots-rabbits-wolves/lists"}