forked from kujan/NGU-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchallenge.py
More file actions
30 lines (24 loc) · 1.09 KB
/
challenge.py
File metadata and controls
30 lines (24 loc) · 1.09 KB
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
"""Challenge start script."""
# Helper classes
from classes.features import Adventure, GoldDiggers, MoneyPit
from classes.helper import Helper
from classes.challenge import Challenge
import argparse
parser = argparse.ArgumentParser(epilog='\n'.join(Challenge.list()), formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument("-c", "--challenge", required=True, type=int, help="select which challenge you wish to run (1-11)")
parser.add_argument("-t", "--times", default=1, type=int, help="number of times to run challenge")
parser.add_argument("-i", "--idle", action='store_true', help="run idle loop after finishing running")
args = parser.parse_args()
Helper.init(True)
Helper.requirements()
print(f"Running challenge #{Challenge.list()[args.challenge-1]} {args.times} times")
for x in range(args.times):
Challenge.start_challenge(args.challenge)
print("Finished doing all challenges")
if args.idle:
print("Engaging idling loop")
while True: # main loop
Adventure.itopod_snipe(300)
MoneyPit.pit()
GoldDiggers.gold_diggers()
else: print("Exiting")