-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharguments.py
20 lines (17 loc) · 1.27 KB
/
arguments.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import argparse
def arguments():
parser = argparse.ArgumentParser()
parser.add_argument("--wh", type=int, default=800, help="height of the Window (in pixels)")
parser.add_argument("--ww", type=int, default=800, help="Width of the Window (in pixels)")
parser.add_argument("--bs", type=int, default=10, help="size of each square on the grid (in pixels)")
parser.add_argument("--fps", type=int, default=15, help="FPS. Increase it to speed up the simulation")
parser.add_argument("--amin", type=int, default=2, help="Minimum num. of neighbours that an alive cell needs to "
"stay alive.")
parser.add_argument("--amax", type=int, default=3, help="Maximum num. of neighbours that an alive cell needs to "
"stay alive.")
parser.add_argument("--dmin", type=int, default=3, help="Minimum num. of neighbours that an alive cell needs to "
"born again.")
parser.add_argument("--dmax", type=int, default=3, help="Maximum num. of neighbours that an dead cell needs to "
"born again")
args = parser.parse_args()
return args