{"id":25334153,"url":"https://github.com/clchinkc/zombie","last_synced_at":"2026-04-05T23:33:33.644Z","repository":{"id":226955499,"uuid":"589657571","full_name":"clchinkc/zombie","owner":"clchinkc","description":"Personal project, Python, NumPy, Matplotlib, Pygame, Scikit-learn, TensorFlow, Docker","archived":false,"fork":false,"pushed_at":"2024-04-06T14:36:19.000Z","size":21815,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T08:49:08.179Z","etag":null,"topics":["algorithms","data-analysis","docker","machine-learning","matplotlib","numpy","pygame","python","sklearn","tensorflow","zombie-simulation"],"latest_commit_sha":null,"homepage":"","language":"Python","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/clchinkc.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":"2023-01-16T16:23:24.000Z","updated_at":"2024-05-12T12:07:01.000Z","dependencies_parsed_at":"2025-04-08T08:54:24.725Z","dependency_job_id":null,"html_url":"https://github.com/clchinkc/zombie","commit_stats":null,"previous_names":["clchinkc/zombie"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clchinkc/zombie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clchinkc%2Fzombie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clchinkc%2Fzombie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clchinkc%2Fzombie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clchinkc%2Fzombie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clchinkc","download_url":"https://codeload.github.com/clchinkc/zombie/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clchinkc%2Fzombie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31454198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"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":["algorithms","data-analysis","docker","machine-learning","matplotlib","numpy","pygame","python","sklearn","tensorflow","zombie-simulation"],"created_at":"2025-02-14T05:36:41.204Z","updated_at":"2026-04-05T23:33:33.628Z","avatar_url":"https://github.com/clchinkc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Zombie Apocalypse Simulation in a School Environment\n\nThis project simulates a zombie apocalypse in a school setting, employing various Python classes and functions to model the interactions between humans, zombies, and the environment. The simulation provides insights into the spread of an infection in a confined space and includes visualization and analysis tools for in-depth exploration.\n\n## Features\n\n- **Simulation of a Zombie Apocalypse:** Models interactions between humans, zombies, and the environment within a school layout.\n- **Object-Oriented Design:** Utilizes classes to represent individuals, zombies, and the school environment.\n- **State Machine Pattern:** Manages state transitions (healthy, infected, zombie, dead) for individuals.\n- **Movement Strategies:** Implements different movement strategies (random, flee, chase) based on the state of the individual.\n- **Grid Management:** Handles legal movements, neighbor detection, and interactions within a 2D grid.\n- **Statistical Tracking:** Tracks population metrics (counts of healthy, infected, zombies, dead) over time.\n- **Visualization and Analysis:** Includes graphical tools (Matplotlib, Seaborn, Pygame, Tkinter) for visualizing the simulation progress and outcomes.\n- **Machine Learning Analysis:** Applies predictive modeling to forecast future states of the simulation.\n\n\n## Installation \u0026 Usage\n\nEnsure you have Python 3.8 or newer installed for manual setup. For Docker, Docker must be installed on your system.\n\n### Manual Installation\n\n1. Clone the repository and install the required dependencies:\n\n    ```bash\n    git clone https://github.com/clchinkc/zombie.git\n    pip install -r requirements.txt\n    ```\n\n2. Run the simulation:\n\n    ```bash\n    python main.py\n    ```\n\n### Installation Through TestPyPI\n\nYou may also install a stable release through TestPyPI:\n\n```bash\npython -m pip install --index-url https://test.pypi.org/simple/ --no-deps zombie_simulation\n```\n\n### Using Docker\n\nTo run the simulation using Docker, follow these steps:\n\n1. Build the Docker Image:\n\n    ```bash\n    docker build -t zombie-simulation .\n    ```\n\n2. Run the Simulation in a Docker Container:\n\n    ```bash\n    docker run -it --rm zombie-simulation\n    ```\n\n    Note that the docker container will not display the graphical output. To view the graphical output, you can run the simulation locally.\n\n\n## Components\n\n- **Person Class:** Models an individual within the school, including attributes like location, state, and health.\n- **Zombie Class:** Represents zombies with specific behaviors like attacking and infecting.\n- **School Class:** Represents the school environment as a 2D grid and handles the dynamics within it.\n- **Simulation Function:** Initializes and runs the simulation, updating and tracking the progress.\n- **Visualization and Analysis Tools:** Provide graphical representations and analytical insights into the simulation's progression.\n\n## Observers\n\nThe project includes several observers for analysis and visualization:\n\n- **Simulation Observer:** Tracks the simulation's state and provides statistical output.\n- **Animation Observers:** Generate animations showing the simulation's progress over time.\n- **Tkinter Observer:** Displays the simulation in a graphical window using Tkinter.\n- **Prediction Observer:** Uses machine learning to predict future states of the simulation.\n- **FFT Analysis Observer:** Analyzes the frequency components of the simulation's dynamics.\n- **Pygame Observer:** Visualizes the simulation in real-time using Pygame.\n- **GAN Observer:** Generates realistic simulations of future states using Generative Adversarial Networks.\n\n## Customization\n\nThe simulation parameters, such as the school size, population size, and number of time steps, can be adjusted in the `main.py` script. Additionally, the movement strategies and state transitions can be customized within their respective classes and methods.\n\n## Contributing\n\nContributions to the project are welcome. Please fork the repository, make your changes, and submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the `LICENSE.md` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclchinkc%2Fzombie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclchinkc%2Fzombie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclchinkc%2Fzombie/lists"}