{"id":27125482,"url":"https://github.com/loryshamadache/haskell-genetic-sim","last_synced_at":"2025-04-07T14:53:33.210Z","repository":{"id":44407724,"uuid":"512500564","full_name":"LorysHamadache/haskell-genetic-sim","owner":"LorysHamadache","description":"A simple genetic algorithm simulation built in Haskell using Gloss for visualization. Demonstrates functional programming patterns and evolution-inspired behavior modeling for Emurgo's Developer Associate Program","archived":false,"fork":false,"pushed_at":"2025-03-29T20:26:13.000Z","size":54383,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T20:29:22.855Z","etag":null,"topics":["genetic-algorithm","haskell","simulation"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/LorysHamadache.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-07-10T17:45:00.000Z","updated_at":"2025-03-29T20:26:16.000Z","dependencies_parsed_at":"2025-03-29T20:40:27.581Z","dependency_job_id":null,"html_url":"https://github.com/LorysHamadache/haskell-genetic-sim","commit_stats":null,"previous_names":["loryshamadache/genetical-algo-sim-emurgo-cda","loryshamadache/hskell-genetical-algo-sim-cda"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LorysHamadache%2Fhaskell-genetic-sim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LorysHamadache%2Fhaskell-genetic-sim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LorysHamadache%2Fhaskell-genetic-sim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LorysHamadache%2Fhaskell-genetic-sim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LorysHamadache","download_url":"https://codeload.github.com/LorysHamadache/haskell-genetic-sim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675601,"owners_count":20977376,"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":["genetic-algorithm","haskell","simulation"],"created_at":"2025-04-07T14:53:32.674Z","updated_at":"2025-04-07T14:53:33.192Z","avatar_url":"https://github.com/LorysHamadache.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Haskell Genetic Algorithm Simulation\n\n**Author**: Lorys Hamadache  \n**Program**: Emurgo Developer Associate Program\n\nThis project demonstrates proficiency in Haskell by implementing a **genetic algorithm simulation**, serving as a foundation for learning and working with **Plutus** and **Cardano Smart Contracts**.\n\n---\n\n## Project Overview\n\nThis simulation models the behavior of \"Characters\" within a bounded environment containing food sources. Each character possesses attributes such as speed, field of vision, and size. They move randomly but will change direction upon detecting food within their field of vision to consume it. Consuming food increases their energy, which otherwise depletes over time. Through successive generations, characters evolve traits that enhance their survival, showcasing the principles of genetic algorithms.\n\n---\n\n## Repository Structure\n\n- `app/`: Contains the main source code for the simulation.\n- `docs/`: Directory for documentation files.\n- `dist-newstyle/`: Directory for build artifacts.\n- `.gitattributes`: Git attributes configuration file.\n- `CHANGELOG.md`: Log of changes and updates made to the project.\n- `README.md`: This documentation file.\n- `project-lorys.cabal`: Cabal configuration file for the project.\n- `project_diagram.png`: Visual representation of the project structure or simulation process.\n\n---\n\n## Visualization\n\nThe simulation utilizes the **Gloss** library for rendering graphics, providing a visual representation of the characters' behaviors and interactions within the environment.\n\n![Simulation Process](project_diagram.png)\n\n---\n\n## Documentation\n\nComprehensive documentation is available, detailing all classes, functions, and their descriptions. Access the Haddock-generated documentation here:\n\n[Haddock Documentation](https://loryshamadache.github.io/Haskell-Project/)\n\n---\n\n## Getting Started\n\n### Prerequisites\n\n- **Haskell Platform**: Ensure you have the Haskell Platform installed on your system.\n- **Gloss Library**: The simulation relies on the Gloss library for visualization.\n\n### Installation\n\n1. **Clone the Repository**:\n\n   ```bash\n   git clone https://github.com/LorysHamadache/haskell-genetic-sim.git\n   cd haskell-genetic-sim\n   ```\n\n2. **Build the Project**:\n\n   ```bash\n   cabal build\n   ```\n\n3. **Run the Simulation**:\n\n   ```bash\n   cabal run\n   ```\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n\n---\n\n## Contact\n\nFor questions or suggestions, please open an issue in the repository.\n\n---\n\n*Note: This project is provided \"as-is\" without warranty of any kind. Use at your own discretion.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floryshamadache%2Fhaskell-genetic-sim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floryshamadache%2Fhaskell-genetic-sim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floryshamadache%2Fhaskell-genetic-sim/lists"}