These are source codes for "Self-organized institutions in evolutionary dynamical-systems games" Itao and Kaneko, PNAS (2025) and "Anonymous monitoring enables turn-taking and sustainability in resource governance: Collective evolutionary dynamical-systems game" Itao and Kaneko (under review)