{"id":18232884,"url":"https://github.com/lcary/doodlebug","last_synced_at":"2025-04-08T11:36:35.208Z","repository":{"id":94567940,"uuid":"109765651","full_name":"lcary/doodlebug","owner":"lcary","description":"Two-dimensional predator-prey simulation in C++","archived":false,"fork":false,"pushed_at":"2017-11-14T18:20:05.000Z","size":227,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-14T07:46:55.505Z","etag":null,"topics":["matrix","predator-prey","simulation","two-dimensional"],"latest_commit_sha":null,"homepage":"","language":"C++","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/lcary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-07T00:21:40.000Z","updated_at":"2023-09-19T08:17:16.000Z","dependencies_parsed_at":"2023-03-22T03:48:41.428Z","dependency_job_id":null,"html_url":"https://github.com/lcary/doodlebug","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"78ca5f23785dba9a228e7f1482c6e642638a1a16"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcary%2Fdoodlebug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcary%2Fdoodlebug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcary%2Fdoodlebug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcary%2Fdoodlebug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lcary","download_url":"https://codeload.github.com/lcary/doodlebug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247836808,"owners_count":21004475,"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":["matrix","predator-prey","simulation","two-dimensional"],"created_at":"2024-11-04T14:04:21.305Z","updated_at":"2025-04-08T11:36:35.192Z","avatar_url":"https://github.com/lcary.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"doodlebug\n=========\n\nProject inspired by Walter Savitch's 2014 C++ textbook. This program\nessentially answers Chapter 16, Question #9 of\n_Problem Solving with C++_ (ninth edition).\n\nOverview\n--------\n\nThe goal for this project is to create a simple two-dimensional\npredator-prey simulation. In this simulation the prey are ants\nand the predators are doodlebugs. These critters live in a world\ncomposed of a 2D grid of cells. Only one critter may occupy\na cell at a time. The grid is enclosed, so a critter is not\nallowed to move off the edges of the world. Time is simulated in\ntime steps. Each critter performs some action every time step.\nYou should see a cyclical pattern between the population of\npredators and prey, although random perturbations may lead\nto the elimination of one or both species.\n\nUsage\n-----\n\nRun `make run` to build and run the C++ program, starting the\nsimulation.\n\n    % make run\n    Grid created.\n    Creating organisms...\n    total # of doodlebugs: 5\n    total # of ants: 100\n    o - - - o - - - - o - - - - - o o - o -\n    - - o o - - - - - - - X - - - - o - - -\n    - o o - - - - - - - - - o o o - - o - -\n    - o o - o - - - o - - - - - o - - - - o\n    o o - - - - - o - - - - o - - - - - - -\n    o o - X X - - - - - o - o - - o o - o -\n    - - o - - - - o - - o o - - o - - - o -\n    o - - - - - - - - - - - - - o - - - - o\n    - - - o - - - - - o - - - - - - - - - -\n    - - - - - - - - o - - o - - - - - - - -\n    - - o - - o - - - o o - - - - o - o o o\n    - - - - - o - - - - - - - o - - - o o o\n    - - - - - - o - o - - - o - o - - - - -\n    o - - - - - - o o - - - o X - - o - - -\n    o - o - o - - - - - - - - - - o - - o -\n    - - - o - - - - - o o o o o o o - o - o\n    - o - - - - - - - - - - o - - - o - - -\n    - - - - - - - - - - - - o - - o - - - o\n    o o - o - o o - o - - - - o - - X o o -\n    - o - - - o - o - - - - - - - - - - - -\n\n    ...\n\nGraph\n-----\n\nRun `make graph` to show a graph of the organism counts over a\ngiven number of iterations.\n\n![organism count graph](images/iter500.png \"500 iterations of organism counts\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcary%2Fdoodlebug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flcary%2Fdoodlebug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcary%2Fdoodlebug/lists"}