← cd ~ ~/42-firenze/fly-in
42 firenze · milestone 3 · python

Fly-In

A fleet of drones has to get from a start hub to an end hub through a graph of zones, in the fewest possible turns. Every zone has a movement cost and a capacity, and links can be capacity-limited too. A restricted zone takes two turns to cross, and the drone can't stop halfway. All drones move at the same time, and the engine resolves conflicts turn by turn.

pythonpydanticdijkstrak-distinct pathspytestmypy --strict
map
normalpriorityrestricted (2 turns)blockeddrone in transit×n = zone capacity

Replay of the real output of : . Every map in the repo's data/maps, from easy to custom.

how it works

view source on github ↗teemoteeo/quarantadue/milestone_3/fly-in