File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ import time
3+ import random
4+
5+ STEPS_LIST = ('SHUFFLE THE DIMMS' ,
6+ 'POWER DRAIN THE HOST' ,
7+ 'STRESS TEST THE HOST' ,
8+ 'RUN CPU AND MEMORY TESTS SEPARATELY' ,
9+ 'RUN MEMTEST' ,
10+ 'RTFM' ,
11+ 'RETURN TO MINIMUM CONFIG' ,
12+ 'REPLACE EVERY DIMM, EVERY CPU AND THE MOTHERBOARD' ,
13+ 'CALL AN EXORCIST' )
14+
15+
16+ def intro_message ():
17+ print ('Team Awesome proudly presents...\n ' )
18+ time .sleep (2 )
19+
20+ print ('THE TROUBLESHOOTING WHEEL OF MISFORTUNE' .center (80 , '*' ) + '\n ' )
21+ time .sleep (2 )
22+
23+ print ('Having trouble fixing a host?\n ' )
24+ time .sleep (2 )
25+
26+ print ("With just one fantabulous spin of THE TROUBLESHOOTING WHEEL OF MISFORTUNE (tm), we'll have you on your way!" )
27+ time .sleep (4 )
28+
29+ def spin ():
30+ input ('\n Give the wheel a spin! (Hit Enter)' )
31+ print ('Spinning...' )
32+ time .sleep (2 )
33+ print ('\n ' + STEPS_LIST [random .randint (0 , len (STEPS_LIST ) - 1 )])
34+ print ('\n Now get out there and fix that mofo!\n ' )
35+
36+ def main ():
37+ intro_message ()
38+
39+ while True :
40+ spin ()
41+ answer = input ('Want another spin? (N to quit) ' )
42+ if answer .upper () == 'N' :
43+ break
44+
45+ if __name__ == "__main__" :
46+ main ()
You can’t perform that action at this time.
0 commit comments