|
|
--- |
|
|
title: Chessboard & Rice Challenge |
|
|
emoji: 📚 |
|
|
colorFrom: yellow |
|
|
colorTo: purple |
|
|
sdk: gradio |
|
|
sdk_version: 5.49.1 |
|
|
app_file: app.py |
|
|
pinned: false |
|
|
--- |
|
|
|
|
|
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference |
|
|
|
|
|
# ♟️ Chess & Rice — Gradio App |
|
|
|
|
|
[](#) |
|
|
[](#) |
|
|
[](#) |
|
|
|
|
|
An interactive visualization of the **classic “chessboard and rice grains” exponential growth problem**, |
|
|
built with **Gradio** and **Plotly**, and ready for deployment on **Hugging Face Spaces** 🚀 |
|
|
|
|
|
--- |
|
|
|
|
|
## 🎯 What It Does |
|
|
|
|
|
- Visualizes how rice grains double on each chess square (1 → 64). |
|
|
- Interactive **chessboard heatmap** of grains (log scale). |
|
|
- **Exponential growth** and **cumulative total** line charts. |
|
|
- Real-world **comparisons** (vs. world population, sand grains, etc.). |
|
|
- Dynamic **stats panel** that updates as you move the slider. |
|
|
|
|
|
--- |
|
|
|
|
|
## 📂 Project Structure |
|
|
|
|
|
|