This project simulates a delivery robot navigating through a small virtual village.
The robot picks up and delivers parcels using different strategies, and we can compare how efficient each strategy is.
- Build a graph of roads connecting different houses and locations
- Simulate parcel pick-up and delivery
- Implement different robot strategies:
- Random Robot: chooses random moves
- Route Robot: follows a fixed delivery route
- Goal-Oriented Robot: plans deliveries intelligently
- Lazy Robot: optimizes deliveries based on route scoring
- Compare efficiency of different robots
- Includes an implementation of an immutable group structure (
PGroup)
- JavaScript (ES6 Classes, Functions, OOP concepts)
- Node.js (optional, if you want to run in terminal)
- Clone the repo:
git clone https://github.com/<your-username>/Delivery-Robot-project.git
- Navigate into the project folder: cd Delivery-Robot-project
- Run the script with Node.js: node exercise3.js