This project simulates a text-based percolation model in Python to demonstrate how a system "percolates" based on probability thresholds. It uses tabular representations to show simulation results in multiple formats including terminal (CMD), HTML, and plain text output.
- Simulates Percolation Logic:
- Demonstrates how filled cells spread through a 2D grid.
- Controlled by grid size and fill probability.
- Multiple Output Formats:
- View results in:
- Command-line table
- Generated HTML file
- Plain text file
- View results in:
- Readable Tabular Output:
- Uses the
prettytablelibrary for clean, structured display.
- Uses the
- Python 3.x
- PrettyTable โ for formatting output tables in various styles (text, HTML)
To run the project locally:
```bash
git clone https://github.com/Anuja-jayasinghe/percolation_demonstration.git
cd percolation_demonstration
- Install required library
pip install prettytable
- Run the application
python percolation_demo.py

