{"id":24086738,"url":"https://github.com/klus3kk/microsociety","last_synced_at":"2026-04-10T11:02:19.452Z","repository":{"id":258680918,"uuid":"867523489","full_name":"Klus3kk/microsociety","owner":"Klus3kk","description":"An object-oriented project that represents the simulator of the society with dynamically changing events.","archived":false,"fork":false,"pushed_at":"2026-01-23T21:12:59.000Z","size":1383,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-24T10:16:25.679Z","etag":null,"topics":["2d","ai","cpp","deep-q-learning","machine-learning","oop","python","reinforcement-learning","sfml","simulation","tensorflow"],"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/Klus3kk.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-04T08:21:26.000Z","updated_at":"2026-01-23T21:13:15.000Z","dependencies_parsed_at":"2024-11-20T23:26:42.265Z","dependency_job_id":"cce828f1-22d7-4934-b88f-512c8a7a0700","html_url":"https://github.com/Klus3kk/microsociety","commit_stats":null,"previous_names":["klus3kk/microsociety"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Klus3kk/microsociety","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klus3kk%2Fmicrosociety","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klus3kk%2Fmicrosociety/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klus3kk%2Fmicrosociety/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klus3kk%2Fmicrosociety/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Klus3kk","download_url":"https://codeload.github.com/Klus3kk/microsociety/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klus3kk%2Fmicrosociety/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31639524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: 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":["2d","ai","cpp","deep-q-learning","machine-learning","oop","python","reinforcement-learning","sfml","simulation","tensorflow"],"created_at":"2025-01-10T02:48:11.015Z","updated_at":"2026-04-10T11:02:19.390Z","avatar_url":"https://github.com/Klus3kk.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MicroSociety\n\n![CI](https://github.com/Klus3kk/microsociety/actions/workflows/ci.yml/badge.svg)\n\n## Description\n\nMicroSociety is an object-oriented simulation project that models a society with AI-driven behaviors, events and interactions.\n\nThe project uses AI to create a lively environment with support for both traditional Q-learning and TensorFlow-based deep learning.\n\n## Platform-specific Setup\n\n### Linux/macOS (Full TensorFlow Support)\n\n**Build with TensorFlow:**\n\n```bash\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake -j$(nproc)\n./bin/MicroSociety\n```\n\n**Build without TensorFlow:**\n\n```bash\nmkdir build \u0026\u0026 cd build\ncmake .. -DUSE_TENSORFLOW=OFF\nmake -j$(nproc)\n./bin/MicroSociety\n```\n\n### Windows (Q-Learning Only)\n\n**Note:** Windows automatically disables TensorFlow due to incomplete C API headers. The simulation can use Q-learning instead.\n\n1. Open **Developer Command Prompt** for Visual Studio\n2. Build the project:\n\n   ```cmd\n   mkdir build \u0026\u0026 cd build\n   cmake -G \"NMake Makefiles\" ..\n   nmake\n   bin\\MicroSociety.exe\n   ```\n\n### Docker Setup \n\n**For Windows users**\n\n```bash\ndocker build -t microsociety .\ndocker run -it microsociety\n```\n\n**With X11 forwarding (Linux/macOS):**\n\n```bash\nxhost +local:docker\n\ndocker run -it --rm \\\n  -e DISPLAY=$DISPLAY \\\n  -v /tmp/.X11-unix:/tmp/.X11-unix \\\n  microsociety\n```\n\n## AI Modes\n\nThe simulation offers two AI modes selectable at startup:\n\n1. **Reinforcement learning C++**: NPCs use Q-learning algorithms\n2. **Deep Q-learning TensorFlow**: NPCs use neural networks \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklus3kk%2Fmicrosociety","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklus3kk%2Fmicrosociety","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklus3kk%2Fmicrosociety/lists"}