File size: 1,094 Bytes
3167bf0
b3ac3d5
3167bf0
 
 
 
 
 
 
 
 
 
b3ac3d5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
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

[![Gradio](https://img.shields.io/badge/Gradio-%E2%9C%85-1f8feb)](#)
[![Python](https://img.shields.io/badge/python-3.8%2B-blue)](#)
[![License: MIT](https://img.shields.io/badge/License-MIT-green)](#)

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