Add food-delivery module: order state table, FIFO dispatcher, nearest / rated / longest-idle rider strategies, atomic stock and kitchen capacity, idempotent placing, seeded simulation (13 test classes, 19 transcripts)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5BMpRV6przXHwuKTz
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
76012dd8c3
commit
3336e2ba15
@@ -0,0 +1,12 @@
|
||||
Same order, same three free riders, three strategies
|
||||
====================================================
|
||||
|
||||
Order pickup: Biryani House (2,3)
|
||||
P1 Imran at (3,3) 1 km away rating 4.2 idle since minute 30
|
||||
P2 Kavya at (6,2) 5 km away rating 4.8 idle since minute 20
|
||||
P3 Sunil at (2,6) 3 km away rating 4.5 idle since minute 10
|
||||
|
||||
nearest -> P1
|
||||
rated<=5km -> P2 (all three are within 5 km, so the best rating wins)
|
||||
rated<=2km -> P1 (only P1 is within 2 km)
|
||||
longest-idle -> P3 (P3 has waited longest)
|
||||
Reference in New Issue
Block a user