This project is a simulation of a Simple Reflex Agent that moves between four rooms and cleans any room marked as "Dirty". The simulation is visualized using matplotlib.
🎯 Features
- Four-room environment arranged in a 2x2 grid.
- Agent starts in Room 1 and moves in circular order.
- Cleans dirty rooms and skips clean ones.
- Visual indicators:
- 🟩 Green: Clean room
- 🟥 Red: Dirty room
- 🔵 Blue dot: Agent location
- Live step-by-step animation using
matplotlib.
🛠️ Technologies Used
- Python 3.x
- matplotlib (for animation and visualization)
- Clone or download the project folder
git clone https://github.com/your-username/simple-reflex-agent.git cd simple-reflex-agent
2.Install matplotlib (if not installed) pip install matplotlib
- Run the simulation python CleanDirty.py