Pizza Dispatcher

Pizza Challenge - Delivery Optimization Problem

I ended up not getting the gig but HOW CUTE IS THIS DASHBOARD??

Made with Vue.js.

Part 1: Single Driver Delivery

Maria is delivering pizzas to an infinite two-dimensional grid of houses. She begins by delivering a pizza to the house at her starting location; a dispatcher then calls via radio and tells her where to move next. Moves are always exactly one house to the north (^), south (v), east (>), or west (<). After each move, Maria delivers a pizza to the house at her new location. The dispatcher has been a little spacey lately, so Maria sometimes ends up delivering more than one pizza to the same house.

Examples: > delivers pizzas to two houses: one to the house at the starting location, and one to the house directly east of the starting location. ^>v< delivers pizzas to four houses in a square; the house at the starting/ending location ends up with two pizzas. ^v^v^v^v^v delivers a bunch of pizzas to some very lucky people at only two houses.

Question: Given the string of dispatcher inputs in this file, how many houses receive at least one pizza?

Part 2: Two Driver Delivery

The next day, to speed up the process, Maria rents a pizza-delivering goat named Clovis. Maria and Clovis begin at the same starting location, and they both deliver a pizza to this starting house. Maria and Clovis then take turns moving based on the dispatcher's instructions.

Examples: ^v now delivers pizzas to three houses; Maria goes north and Clovis goes south. ^>v< now delivers pizzas to three houses; Maria and Clovis both end up back where they started. ^v^v^v^v^v now delivers pizzas to 11 houses; Maria treks north and Clovis treks south.

Question: Given the same string of dispatcher inputs as in Part One, how many houses receive at least one pizza?

Part 3: Multiple Driver Speeds

Various driver speeds.

4
Drivers
14
Homes
23
Total Pizzas
Drivers
Active Drivers
maria
clovis
oscar
nibbler
NameSpeedHomesPizzas
maria
3
56
clovis
2
66
oscar
3
56
nibbler
3
45
Inactive Drivers
lady
Directions
1
maria
clovis
oscar
nibbler
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Preset
Note: Limit enforced to keep the grid a reasonable size.
Custom
Click arrows for custom directions