import streamlit as st import streamlit.components.v1 as components st.set_page_config(page_title="City Evolution Simulator", layout="wide") st.title("City Evolution Simulator") st.write("Watch a 3D city grow with lakes, hills, and evolving blocks") html_code = """ City Evolution Simulator

City Controls

Buildings: 0

Blocks: 0

Generation: 0

""" # Render the HTML component components.html(html_code, height=600) st.sidebar.title("City Evolution Simulator") st.sidebar.write(""" ## How to Play Watch a 3D city evolve with lakes, hills, and building blocks. ### Controls: - **Evolve City**: Grow the city - **Reset View**: Return to default view - **Left-click + drag**: Rotate - **Right-click + drag**: Pan - **Scroll**: Zoom ### Features: - 16:9 play area - Blocks (10x10 units) with up to 5 buildings - Buildings evolve floor-by-floor using L-systems - Terrain with hills and lakes - Waterfront properties grow larger - Bridges connect land masses """)