plan: use conveyor_rates rather than hard coded values

This commit is contained in:
Danny Robson 2019-07-14 11:51:19 +10:00
parent a6a7594eda
commit 4b79715b16

View File

@ -84,8 +84,8 @@ def main():
# highest conveyor belt capacity.
for name, rate in required_items.items():
print(name, rate, float(rate * 60))
if rate * 60 > 780:
print("Rate exceeds mk5 conveyor")
if rate * 60 > conveyor_rates[-1]:
print("Rate exceeds max conveyor")
# Calculate the number of machines required to build each item at the
# calculated rates.