Răsfoiți Sursa

roi: header, bold

raylu 6 zile în urmă
părinte
comite
ac1ff9723f
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      roi.py

+ 3 - 1
roi.py

@@ -20,8 +20,10 @@ def main() -> None:
 		if profit := calc_profit(recipe, buildings, materials, prices):
 			profits.append(profit)
 	profits.sort(reverse=True)
+	print('\033[1mwrought    \033[0;32mdaily profit/area\033[31m')
+	print('\033[30mrecipe                         \033[0mexpertise            \033[33mcapex  \033[35mdaily opex\033[0m')
 	for p in profits:
-		print(f'{p.output:5} \033[32m{p.profit_per_area: 10,.0f}\033[31m', end='')
+		print(f'\033[1m{p.output:5} \033[0;32m{p.profit_per_area: 10,.0f}\033[31m', end='')
 		if p.low_volume:
 			print(' low volume', end='')
 		if p.heavy_logistics: