-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
executable file
·47 lines (37 loc) · 1.4 KB
/
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
#!/usr/bin/env python
"""
Cookie Clicker Competitions
"""
import argparse
from cookie_clicker.utils import Config
from cookie_clicker.challenge import Challenge
def main(args):
"""Creates a challenge and runs all competitions"""
challenge = Challenge(args)
challenge.run()
challenge.print_results()
if __name__ == '__main__':
PARSER = argparse.ArgumentParser(description='Cookie Clicker Simulation')
PARSER.add_argument('--duration',
'-d',
type=float,
help='Duration of the simulation.',
default=1e10)
PARSER.add_argument('--building_info',
'-b',
type=str,
help='Config file about the buildings.',
default=Config.Defaults.BUILDING_INFO)
PARSER.add_argument('--all_strategies',
'-a',
action='store_true',
help='Do not ignore skipped strategies.')
PARSER.add_argument('--strategy',
'-s',
type=str,
help='Execute only this one strategy.')
PARSER.add_argument('--all_competitions',
'-c',
action='store_true',
help='Do not ignore skipped competitions.')
main(PARSER.parse_args())