-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathfile and function list
83 lines (57 loc) · 2.88 KB
/
file and function list
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
File and function list
sportsBook.py
tennis()
Place holder for second sport.
main_menu()
Introductory menu for the project.
footballMenu.py
download_fixtures(league_data)
Place holder for futre function.
Will be used to scrape upcoming fixtures.
display_fixtures(league_data)
Place holder for future function.
Will be used to display scraped fixtures.
analyse_fixtures(league_data)
Place holder for futue function.
Will be used to run match analysis on scraped fixtures.
display_analysis(league_data)
Place holder for future function.
Will be used to display analyitics.
single_game_analysis(league_data)
Place holder for future function.
Will be used to run analysis on a single game selected from
a selection of available fixtures.
choose_leagues(league_data)
Assigns the returned value from the selectLeague() function to leagueData.
display_selected_leagues(league_data)
Displays each of the leagues currently in the leagueData dictionary.
reports(league_data)
The reports submenu.
leave(league_data)
Used to return to the main menu.
football_menu()
Displays the menu for availble football options.
Manages predictions returned from analysis options. Adds the individual predictions to the main list.
display_predictions(predictions)
Displays the current set of predictions.
football.py
select_league(league_data)
Prompts the user to select which league to analyise.
Passes the selection to the getLeagueData() function.
import_json_file(league_data)
Reads the leagueData.json file to the leagueData dictionary, replacing the existing dictionary contents.
export_json_file(league_data)
Saves the current leagueData data to the leagueData.json file.
display_selection(league_data)
Displays the current leagueData dictionary content on the screen.
get_league_data(selected_league, league_data)
Scrapes data for the selected league. Adds it to the leagueData dictionary if it isn't already present.
get_league(team, league_data)
Returns the league the provided team belongs to.
compare(home_team, away_team, league_data)
Returns a list of two lists. One list contains a home / away league statistic comparison. The other list contains a total league statistic comparison.
list_teams(league_data)
Returns a list of all of the teams in the current leagueData dictionary.
manual_game_analysis(league_data)
Prompts the user to select a home team and an away team. Displays league statitistics for both, a comparison of the two and a prediction.
Returns the prediction as a list.