MCPcopy Create free account
hub / github.com/ActiveState/code / security

Function security

recipes/Python/578636_Droids_2__IF_/recipe-578636.py:179–267  ·  view source on GitHub ↗
(armory, programs, droids)

Source from the content-addressed store, hash-verified

177 exit(0)
178
179def security(armory, programs, droids):
180 print('\n----------')
181 print('\nDroid mobile..')
182 time.sleep(1)
183 print('....')
184 time.sleep(1)
185 print('''\nYou are on the Security Deck. This is where all
186Surveillance aboard the Cruiser is done.
187Sentry Droid 529 is absent from the Console.''')
188 print('\n[-SECURITY-]\n')
189 print('1.) View Surveillance monitors on other decks')
190 print('2.) Access Main Console')
191 print('3.) Return to Main Elevator')
192 cmdlist = ['1', '2', '3', 'console hack']
193 cmd = getcmd(cmdlist)
194 if cmd == '1':
195 print('\n----------')
196 print('\nBooting Monitors....')
197 time.sleep(1)
198 print('....')
199 time.sleep(1)
200 print('...')
201 time.sleep(1)
202 print('\nMonitors active.')
203 time.sleep(1)
204 print('\n[-SURVEILLANCE FEED-]')
205 print('''\nDECK 1 - This Deck appears to be clear.
206\nDECK 2 - A Enemy Droid Shuttle is docked here.
207\nDECK 3 - MONITOR OFFLINE - NO LIVE FEED.
208\nDECK 5 - MONITOR OFFLINE - NO LIVE FEED.
209\nDECK 6 - MONITOR OFFLINE - NO LIVE FEED.
210\nDECK 7 - MONITOR OFFLINE - NO LIVE FEED.
211\nDECK 8 - A T1000 Master Elite Enemy Command Droid.
212\nDECK 9 - A small Low Class Enemy Scouter Droid.
213\nDECK 10 - This Deck appears to be clear''')
214 time.sleep(2)
215 security(armory, programs, droids)
216 elif cmd == '2':
217 print('\n - ACCESS TO MAIN CONSOLE DENIED -')
218 time.sleep(2)
219 security(armory, programs, droids)
220 elif cmd == '3':
221 start(armory, programs, droids)
222 elif cmd == 'console hack':
223 if 'console hack' in programs:
224 print('\nloading console hack....')
225 time.sleep(2)
226 print('....')
227 time.sleep(2)
228 print('10000101010101010101010' * 1000)
229 time.sleep(1)
230 print('....')
231 time.sleep(1)
232 print('Accessing encrypted files...')
233 time.sleep(2)
234 print('Decrypting....')
235 time.sleep(2)
236 print('\n[- SECURITY MAIN CONSOLE -]')

Callers 1

startFunction · 0.70

Calls 4

printFunction · 0.85
getcmdFunction · 0.70
startFunction · 0.70
sleepMethod · 0.45

Tested by

no test coverage detected