{"id":50515304,"url":"https://github.com/nordicnode/catsim-ascii","last_synced_at":"2026-06-02T23:30:53.420Z","repository":{"id":361704376,"uuid":"1255468314","full_name":"nordicnode/catsim-ascii","owner":"nordicnode","description":"Terminal ASCII cat behavioral simulation - 2 cats with ethology-grounded AI (ncurses, C17)","archived":false,"fork":false,"pushed_at":"2026-05-31T22:23:24.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-31T23:20:34.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/nordicnode.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-31T21:33:40.000Z","updated_at":"2026-05-31T22:23:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nordicnode/catsim-ascii","commit_stats":null,"previous_names":["nordicnode/catsim-ascii"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/nordicnode/catsim-ascii","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nordicnode%2Fcatsim-ascii","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nordicnode%2Fcatsim-ascii/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nordicnode%2Fcatsim-ascii/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nordicnode%2Fcatsim-ascii/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nordicnode","download_url":"https://codeload.github.com/nordicnode/catsim-ascii/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nordicnode%2Fcatsim-ascii/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33841995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-02T23:30:51.746Z","updated_at":"2026-06-02T23:30:53.415Z","avatar_url":"https://github.com/nordicnode.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CatSim ASCII\n\nTerminal ASCII simulation of two cats (Milo \u0026 Luna) with ethology-grounded behavioral AI.\nBuilt in C17 using ncurses. Target platform: **CachyOS Linux** (Arch-based).\n\n## Install \u0026 Build (CachyOS)\n\n```bash\n# CachyOS is Arch-based with optimized repos (5-20% faster builds)\nsudo pacman -Syu\nsudo pacman -S base-devel ncurses git\n\n# Verify toolchain\ngcc --version\n\n# Test ncurses\necho '#include \u003cncurses.h\u003e\nint main(){initscr();endwin();return 0;}' \u003e test.c\ngcc test.c -lncursesw -o test \u0026\u0026 ./test \u0026\u0026 echo OK\nrm test.c test\n\n# Clone and build\ngit clone https://github.com/nordicnode/catsim-ascii\ncd catsim-ascii\nmake\n./catsim\n```\n\nPress `q` to quit.\n\n## File Structure\n\n```\ncatsim-ascii/\n├── Makefile\n├── README.md\n├── src/\n│   ├── main.c        – 10 Hz ncurses loop, clock_nanosleep timer\n│   ├── cat.h / cat.c – Cat struct, physiology, perception, memory\n│   ├── behavior.h / behavior.c – 14 ethogram behaviors (F1–F6)\n│   ├── fcm.h / fcm.c – Fuzzy Cognitive Map (6 factor nodes)\n│   ├── world.h / world.c – Map loader, wall/food detection\n│   └── render.h / render.c – ncurses ASCII drawing, status bar\n└── data/\n    ├── personalities.json – Milo \u0026 Luna traits\n    └── map_default.txt    – 80×22 house map\n```\n\n## Behavioral Science Basis\n\n| System | Source |\n|--------|--------|\n| 6 interaction factors (F1–F6) | Ramos et al. 2017 (105 dyad study) |\n| Outcome distribution 56/15/29% | Ramos et al. 2017 |\n| Ear position → outcome prediction | Deputte 2021 |\n| Allogrooming stats (91.6% unidirectional) | Alberts et al. 2002 |\n| Sleep budget 12–16h/day | Montoya et al. 2023 |\n| Prey sequence (stalk→wiggle→pounce) | Pellis \u0026 Pellis 2009 |\n| Vocal repertoire (10+ types) | Tavernier et al. 2020 |\n\n## Simulation Mechanics\n\n- **10 Hz tick rate** using `clock_nanosleep` (CLOCK_MONOTONIC)\n- **FCM behavior selection**: `argmax(F1–F6)` above threshold 0.3 — no randomness\n- **Circadian rhythm**: every 600 ticks, cats with energy \u003c 40 sleep 3–5 real minutes\n- **Memory ring buffer**: 20 entries, drives allogrooming unlock after 3+ positive interactions\n- **ASCII legend**: `c` sleeping · `\u0026` alert/active · `@` pouncing · `*` bunny-kick · `\u003e` ears-back marker · `~` tail lashing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnordicnode%2Fcatsim-ascii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnordicnode%2Fcatsim-ascii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnordicnode%2Fcatsim-ascii/lists"}