-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
56 lines (43 loc) · 1.38 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
48
49
50
51
52
53
54
55
56
"""
main.py
This script serves as the entry point for the EA FC Team Generator Tool.
It controls the execution flow of the tool based on predefined flags
and prints a banner to welcome users.
"""
from my_project.analytics import analyze_male_players as analyze
from my_project.create_own_dataset import create_male_dataset as create
from my_project.create_super_league import create_draft as draft
def main():
"""
Main function to run the EA FC Team Generator Tool.
Controls the flow of the script based on flags.
"""
print_banner()
# Flags to control which parts of the tool are run
make_male_dataset = False
show_analytics = False
start_draft = True
# Create the dataset if the flag is set
if make_male_dataset:
create()
# Show analytics if the flag is set
if show_analytics:
analyze()
# Start the draft if the flag is set
if start_draft:
draft()
def print_banner():
"""
Prints a banner for the EA FC Team Generator Tool.
Displays the tool's name, creator, and GitHub link.
"""
width = 40
print("=" * width)
print("Welcome to the EA FC Team Generator Tool".center(width))
print("=" * width)
print("Created by Quilfort".center(width))
print("GitHub: https://github.com/Quilfort".center(width))
print("=" * width)
print("\n")
if __name__ == "__main__":
main()