@SilverWolfSapphire/

# Colonise [EDIT]

## Colonise. Written in python. Edited to be better ;3

Files
• main.py
• PlanetStats.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
```
```import random
import time
import math
import string

class cls(object):
def __repr__(self):
import os
os.system('cls' if os.name == 'nt' else 'clear')
return ''
cls = cls()

treasury = 30000000
planets = "A B C"
colonies = ["bob","ree"]
colony_ships = 0
supply_ships = 0
battle_ships = 0
ship_purchase_count = 0
action_ship = input("\nDo you want to buy a ship? [y/n]: ")
while action_ship == "y":
ship_type = input("What ship do you want to buy: Colony, Supply, Battle: ")
if ship_type == "colony" or ship_type == "Colony":
treasury -= 1500000
print("1500000 Currency deducted!")
colony_ships += 1
print("1 Colony ship purchased!")
ship_purchase_count += 1
elif ship_type == "supply" or ship_type == "Supply":
treasury -= 1000000
print("1000000 Currency deducted!")
supply_ships += 1
print("1 Supply ship purchased!")
ship_purchase_count += 1
elif ship_type == "battle" or ship_type == "Battle":
treasury -= 3000000
print("3000000 Currency deducted!")
battle_ships += 1
print("1 Battle ship purchased!")
ship_purchase_count += 1
else:
print("\n  - Invalid Input! -  \n")
action_ship = input("Do you want to buy another ship? [y/n]: ")
print("________________________________________________________\n")
print("Treasury: " + str(treasury))
print("Battleships: " + str(battle_ships))
print("Supplyships: " + str(supply_ships))
print("Colonyships: " + str(colony_ships))
print("________________________________________________________\n")
print("Satellites have discovered potentially viable planets!")

#Planet A Statistics
Anative_threat_level = random.randint(1,100)
Arocket_fuel = random.randint(1,100)
Arare_minerals = random.randint(1,100)
Aspecial_resources = random.randint(1,100)
Aliquid_water = random.randint(1,100)
Aarable_land = random.randint(1,100)
Ainfrastructure_resources = random.randint(1,100)

#Planet B Statistics
Bnative_threat_level = random.randint(1,100)
Brocket_fuel = random.randint(1,100)
Brare_minerals = random.randint(1,100)
Bspecial_resources = random.randint(1,100)
Bliquid_water = random.randint(1,100)
Barable_land = random.randint(1,100)
Binfrastructure_resources = random.randint(1,100)

#Planet C Statistics
Cnative_threat_level = random.randint(1,100)
Crocket_fuel = random.randint(1,100)
Crare_minerals = random.randint(1,100)
Cspecial_resources = random.randint(1,100)
Cliquid_water = random.randint(1,100)
Carable_land = random.randint(1,100)
Cinfrastructure_resources = random.randint(1,100)

input("   ~   Press enter   ~   ")
print("______________________________________")
print ("|    🌍   Planet A Statistics:  🌍     |\n|                                    |")
time.sleep(1)
print("|    Threat Level: " + str(Anative_threat_level) + "                |")
time.sleep(1)
print("|    Extractable Fuel: " + str(Arocket_fuel) + "            |")
time.sleep(1)
print("|    Exploitable Minerals: " + str(Arare_minerals) + "        |")
time.sleep(1)
print("|    Special Resources: " + str(Aspecial_resources) + "           |")
time.sleep(1)
print("|    Liquid Water: " + str(Aliquid_water) + "                |")
time.sleep(1)
print("|    Arable Land: " + str(Aarable_land) + "                 |")
time.sleep(1)
print("|    Infrastructure Resources: " + str(Ainfrastructure_resources) + "    |")
print("|____________________________________|\n")
time.sleep(1)
input("   ~   Press Enter   ~   ")
print("________________________________________________________\n")
print("______________________________________")
print ("|    🌍   Planet B Statistics:  🌍     |\n|                                    |")
time.sleep(1)
print("|    Threat Level: " + str(Bnative_threat_level) + "                |")
time.sleep(1)
print("|    Extractable Fuel: " + str(Brocket_fuel) + "            |")
time.sleep(1)
print("|    Exploitable Minerals: " + str(Brare_minerals) + "        |")
time.sleep(1)
print("|    Special Resources: " + str(Bspecial_resources) + "           |")
time.sleep(1)
print("|    Liquid Water: " + str(Bliquid_water) + "                |")
time.sleep(1)
print("|    Arable Land: " + str(Barable_land) + "                 |")
time.sleep(1)
print("|    Infrastructure Resources: " + str(Binfrastructure_resources) + "    |")
print("|____________________________________|\n")
time.sleep(1)
input("   ~   Press Enter   ~   ")
print("________________________________________________________\n")
print("______________________________________")
print ("|    🌍   Planet C Statistics:  🌍     |\n|                                    |")
time.sleep(1)
print("|    Threat Level: " + str(Cnative_threat_level) + "                |")
time.sleep(1)
print("|    Extractable Fuel: " + str(Crocket_fuel) + "            |")
time.sleep(1)
print("|    Exploitable Minerals: " + str(Crare_minerals) + "        |")
time.sleep(1)
print("|    Special Resources: " + str(Cspecial_resources) + "           |")
time.sleep(1)
print("|    Liquid Water: " + str(Cliquid_water) + "                |")
time.sleep(1)
print("|    Arable Land: " + str(Carable_land) + "                 |")
time.sleep(1)
print("|    Infrastructure Resources: " + str(Cinfrastructure_resources) + "    |")
print("|____________________________________|\n")
time.sleep(1)
input("   ~   Press Enter   ~   ")
print("________________________________________________________\n")
planet_choice = input("Which planet do you want to colonise? [a/b/c]: ")
if planet_choice == "a":
time.sleep(1)
print("You have chosen Planet A to colonise. Warping to Planet A...")
time.sleep(2)
print("   ...   Warping   ...   ")
time.sleep(2)
print("   ...   Warping   ...   ")
time.sleep(2)
print("   ...   Warping   ...   ")
print("You have arrived at Planet A.")
elif planet_choice == "b":
time.sleep(1)
print("You have chosen Planet B to colonise. Warping to Planet B...")
time.sleep(2)
print("   ...   Warping   ...   ")
time.sleep(2)
print("   ...   Warping   ...   ")
time.sleep(2)
print("   ...   Warping   ...   ")
print("You have arrived at Planet B")
elif planet_choice == "c":
time.sleep(1)
print("\nYou have chosen Planet C to colonise. Warping to Planet C...")
cls()
print("   ...   Warping   ...   ")
time.sleep(2)
cls()
print("   ...   Warping   ...   ")
time.sleep(2)
cls()
print("   ...   Warping   ...   ")
time.sleep(2)
cls()
print("You have arrived at Planet C.")
else:
print(str(planet_choice) + " is not a valid planet!")```
Fetching token