A Go project made for Epitech.
Warning you need to specify in the dockerfile the name of the file that you wanna use. By default it's file.txt
docker build . -t warehouse-project
docker scan warehouse-project
docker run warehouse-project
We got a package for the parsing and a package for the algorithm. The algorithm will call the package which parses to execute it and get the infos it needs.
For each packet, we are looking for the closest palette. The palette will move to the packet but if she finds another packet on her way, she will take it instead of the original one. Then each palette with a packet is looking for the closest truck. They will wait near the truck if he's gone. The truck leave only if he can't take a blue packet anymore (500) or if there is no packet left.