CCR/python
Shrek Requiem 7f3c81f9ad urggggh 2025-02-03 17:07:10 -05:00
..
src README 2025-02-03 16:57:25 -05:00
.gitignore idk 2025-02-03 15:50:42 -05:00
README.md urggggh 2025-02-03 17:07:10 -05:00

README.md

CCR Python Simulations

🥖 Bakery

A computational model of decentralized bread production/distribution commune (type 1) inspired by Project Cybersyn.

Key Features

  • Decentralized Voting System with consensus-based production decisions
  • Resource Cybernetics (Real-time flour/energy tracking)
  • Variable distribution priority
  • Community Trust Metrics : Feedback-loop driven scores that influence donations

⚙️ Installation

git clone https://github.com/your-org/CCR.git
cd CCR/python

# Using Nix (recommended):
`nix develop`

# Manual setup:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

🚦 Running the Simulation

python run.py

# Expected terminal output:
Day 0: Produced 94 loaves (Consensus: 3/4)
Day 2: Distributed 82 loaves
Community trust: 58.3 → 64.1

📁 Code Structure

python/
├── classes.py       # Core models (Bakery, Member)
├── simulation.py    # Main simulation loop
├── run.py           # Visualization script using matplotlib
├── tests/           # Unit tests (upcoming)
└── analysis/        # Data processing notebooks (upcoming)

🌱 Future Development

-[ ] Add crisis scenarios (resource shortages) -[ ] Implement skill-based task allocation -[ ] Connect to real data -[ ] Develop web interface -[ ] Generalize to other type 1 communes

📊 Example Output

Day Bread Stock Trust Score Production Runs
0 94 50.0 1
3 132 63.4 2
7 87 71.2 1

📝 Contributing

  1. Fork the repository
  2. Create feature branch:
git checkout -b feature/new-voting-system
  1. Submit pull request with:
    • Code changes
    • Updated tests
    • Documentation additions