Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#THIS PROGRAM CAN ONLY RECOGNISE L112 AND Fx77 SQUARE CONDUITS
#IN A QUADRANT:
#L112 must be 1
#Fx77 must be a multiple of 2

x = 0
period = input("Period = ")
try:
  period = int(period)
  x = 1
except ValueError:
  print("This is not a number!")
  x = 0
if period < 58:
  print("Period is too low!")
  x = 0
elif period % 11 == 0 and period not in [112, 224, 448]:
  x = 2
if x == 1:
  NumberOfMove = 0
  while True:
    TrackLength = (224 + (NumberOfMove * 77)) * 4
    if TrackLength % period == 0:
      totalconduits1 = 4 + (NumberOfMove * 4)
      break
    else:
      NumberOfMove += 1
  print("Number of L112: 8")
  print("Number of Fx77:", (NumberOfMove * 4))
  print("Number of Herschels:", TrackLength // period)
  if period < 61:
    print("Eater: Eater 5")
  elif period < 63:
    print("Eater: Eater 2")
  elif period < 69:
    print("Eater: Eater 1")
  else:
    print("No eater required")
elif x == 2:
  NumberOfMove3 = 0
  while True:
    TrackLength3 = ((112 * 11) + (NumberOfMove3 * 77)) * 4
    if TrackLength3 % period == 0:
      print("Number of L112: 44")
      print("Number of Fx77:", (NumberOfMove3 * 4))
      print("Number of Herschels:", TrackLength3 // period)
      if period < 61:
        print("Eater: Eater 5")
      elif period < 63:
        print("Eater: Eater 2")
      elif period < 69:
        print("Eater: Eater 1")
      else:
        print("No eater required")
      break
    else:
      NumberOfMove3 += 1