This project is an AI-powered logistics simulation game that models the delivery of perishable goods across major Indian cities. It uses game theory (Minimax algorithm) and GUI elements to simulate disruptions, delivery planning, and optimize routes based on shelf-life constraints.
- 🗺️ Map of Indian cities connected by weighted routes
- 🚚 Delivery simulation for perishable goods (Milk, Fruits, Medicines)
⚠️ Real-time disruption simulation (Minor/Major delays)- 🧠 AI-based path planning using Minimax Algorithm
- 🧮 Route cost and shelf-life-based evaluation function
- 🖼️ Visual representation of routes and disruptions using NetworkX and Matplotlib
- 🎮 GUI with tkinter to simulate game interactions
- Python 3
- Tkinter for GUI
- NetworkX and Matplotlib for map visualization
- User Input: Source, Destination, Item to deliver, and Difficulty Level.
- AI Route Planning: Uses a Minimax-based turn-based simulation to find the optimal route under shelf-life and delay constraints.
- Disruption Simulation: User can simulate disruptions (15min or 30min delay) manually.
- GUI Visualization: Real-time update of game state, info logs, and map display with highlighted disruptions.
- Python 3.x
- Install required packages:
pip install networkx matplotlibpython main.py- Start Game: Begins simulation with given inputs
- Introduce Disruption: Adds random delay to current route
- Next Move: Progress to next node in route
- Show Map: Displays the city network graph with disruptions
.
├── main.py # Contains all logic: AI, GUI, Graph, Game Loop
├── README.md # You're here
Cities like Delhi, Jaipur, Mumbai, Chennai, etc., are connected in a graph. Each edge has a time cost (representing delivery time). Disruptions increase these costs.
- Milk: 50 units
- Fruits: 70 units
- Medicines: 90 units
- Minimax Algorithm simulates both optimal and worst-case disruptions.
- Evaluation Function considers remaining shelf life, disruption penalties, and distance.
PRs and suggestions are welcome! Please open an issue first to discuss what you would like to change.
This project is under the MIT License.
Built with ❤️ to simulate smart and adaptive logistics solutions for perishable goods.




