Just a simple, and painful to use calculator for the game Factorio written in Python
Revision | e1e9d8116ea8ab21123ad065c58a9ac78c54f679 (tree) |
---|---|
Time | 2017-08-10 07:49:29 |
Author | Eric Hopper <hopper@omni...> |
Commiter | Eric Hopper |
Fix example to no longer have very long line.
@@ -16,7 +16,17 @@ | ||
16 | 16 | |
17 | 17 | >>> from fractions import Fraction as F |
18 | 18 | >>> import factorio_calc as fc; from factorio calc import item_db as idb |
19 | - >>> fc.print_factories(fc.factories_for_each(idb['Yellow Science'], F(1,4), raw_materials=(idb['Circuit'], idb['Copper'], idb['Plastic'], idb['Battery'], idb['Speed Module 1'], idb['Sulfur'], idb['Iron']))) | |
19 | + >>> fc.print_factories( | |
20 | + ... fc.factories_for_each( | |
21 | + ... idb['Yellow Science'], | |
22 | + ... F(1,4), | |
23 | + ... raw_materials=(idb['Circuit'], | |
24 | + ... idb['Copper'], | |
25 | + ... idb['Plastic'], | |
26 | + ... idb['Battery'], | |
27 | + ... idb['Speed Module 1'], | |
28 | + ... idb['Sulfur'], | |
29 | + ... idb['Iron']))) | |
20 | 30 | Factories (as a fraction) Rate Name |
21 | 31 | --------- --------------- ------- --------------------- |
22 | 32 | 2 7/4 1/4 Yellow Science |