{"id":22449077,"url":"https://github.com/mansurpro/dinomindevolution","last_synced_at":"2025-03-27T12:14:36.907Z","repository":{"id":265797960,"uuid":"896612127","full_name":"MansurPro/DinoMindEvolution","owner":"MansurPro","description":"This project uses neural evolution to train a neural network to play the Google Chrome Dinosaur Game autonomously.","archived":false,"fork":false,"pushed_at":"2024-12-01T00:16:51.000Z","size":873,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T12:14:31.409Z","etag":null,"topics":["ai","algorithms","dinosaur-game","game","neat-algorithm","neat-python","neural-networks","pygame","python3"],"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/MansurPro.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":"2024-11-30T20:37:05.000Z","updated_at":"2024-12-01T00:16:55.000Z","dependencies_parsed_at":"2024-12-03T09:19:01.331Z","dependency_job_id":null,"html_url":"https://github.com/MansurPro/DinoMindEvolution","commit_stats":null,"previous_names":["mansurpro/dinomindevolution"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MansurPro%2FDinoMindEvolution","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MansurPro%2FDinoMindEvolution/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MansurPro%2FDinoMindEvolution/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MansurPro%2FDinoMindEvolution/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MansurPro","download_url":"https://codeload.github.com/MansurPro/DinoMindEvolution/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245841762,"owners_count":20681195,"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":["ai","algorithms","dinosaur-game","game","neat-algorithm","neat-python","neural-networks","pygame","python3"],"created_at":"2024-12-06T05:07:33.151Z","updated_at":"2025-03-27T12:14:36.780Z","avatar_url":"https://github.com/MansurPro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦖 Dino AI Game  \n\n**A thrilling AI-powered game where dinos evolve to dodge obstacles and reach high scores!**  \nBuilt with **Python**, **Pygame**, and **NEAT**, this project is a showcase of NeuroEvolution in action.  \n\n![Game Screenshot Placeholder](demo/demo_gif.gif)\n\n---\n\n## 🚀 Features  \n\n✨ **AI Evolution:** Watch dinos learn and improve with each generation.  \n🎨 **Customizable Skins:** Choose from a variety of dino skins.  \n🌵 **Dynamic Obstacles:** Randomly generated cacti with increasing difficulty.  \n📈 **Score Tracking:** Real-time score display with generation stats.  \n🧠 **Neural Networks:** Powered by NEAT to create intelligent dino players.  \n\n---\n\n## 🛠️ Prerequisites  \n\nEnsure you have the following installed before starting:  \n- **Python 3.8 or higher**  \n- **Pygame library**  \n- **NEAT-Python library**  \n\n---\n\n## 📥 Installation  \n\n1. Clone the repository:  \n\n   ```bash\n   git clone https://github.com/MansurPro/DinoMindEvolution.git\n   cd DinoMindEvolution\n   ```\n\n2. Install dependencies:  \n\n   ```bash\n   pip install pygame neat-python\n   ```\n\n3. Place sprite assets in the `sprites/` directory:  \n   - `sprites/dino/`  \n   - `sprites/cactus/`  \n   - `sprites/road.png`  \n\n---\n\n## 🎮 How to Play  \n\n1. Run the game:  \n\n   ```bash\n   python main.py\n   ```\n\n2. Sit back and watch the AI dinos evolve to avoid obstacles.  \n\n3. Play the game\n\n   ```bash\n   python dino_game.py\n   ```\n\n---\n\n## ⚙️ Configuration  \n\nThe AI configuration is defined in `config-feedforward.txt`. Modify parameters to customize the AI behavior.  \n\nExample:  \n```txt\n[NEAT]\nfitness_criterion     = max\npop_size              = 20\nfitness_threshold     = 10000\n```\n\n💡 *Tip: Adjust `pop_size` and `fitness_threshold` to balance performance and complexity.*  \n\n---\n\n## 🖼️ Screenshots  \n\n### Main Game  \n![Main Game Screenshot](demo/demo_game.gif)  \n\n### Neural Network in Action  \n![Neural Network Screenshot](demo/demo_gif.gif) \n\n---\n\n## 🧠 How It Works  \n\n1. **Initialization:**  \n   - Creates a population of dinos, each controlled by a neural network.  \n\n2. **Gameplay Loop:**  \n   - Dinos dodge cacti by learning to jump.  \n   - Fitness scores improve with survival and penalize unnecessary jumps.  \n\n3. **Evolution:**  \n   - NEAT evolves the neural networks, refining dino behavior across generations.  \n\n---\n\n## 🔮 Future Enhancements  \n\n- 🎵 Add sound effects and background music.  \n- 🏆 Create a leaderboard for players.  \n- 🔍 Visualize neural networks in real time.  \n- 🌌 Introduce dynamic backgrounds and weather effects.  \n\n---\n\n## 📝 License  \n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.\n\n---\n\n## 💬 Contact  \n\n👤 **Your Name**  \n📧 Email: [mansurbek1203@gmail.com](mailto:mansurbek1203@gmail.com)  \n🌐 GitHub: [@MansurPro](https://github.com/MansurPro)  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmansurpro%2Fdinomindevolution","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmansurpro%2Fdinomindevolution","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmansurpro%2Fdinomindevolution/lists"}