-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPowerRanker.java
More file actions
75 lines (60 loc) · 1.98 KB
/
PowerRanker.java
File metadata and controls
75 lines (60 loc) · 1.98 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
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
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Personal Project: PowerRanker
*
* This serves as the driver for the Power Ranking Program, welcomes the user
* and gets the .csv information necessary to run the program
*
* @author Oscar Filson
*/
public class PowerRanker {
public static void main(String[] args) {
Scanner scanny = new Scanner(System.in);
String welcome = "Welcome to the MLE PowerRanker!";
String starline = "*******************************";
System.out.print(welcome + "\n" + starline + "\n");
System.out.print("What is the file path of the league's data? ");
String filepath = scanny.next();
League league = new League();
league.loadScheduleFromCSV(filepath);
////////////////////////////////
// SHOW ALL DATA ON EACH TEAM //
////////////////////////////////
// league.sortAdjusted();
// System.out.print("Adjusted:\n" + league.toString());
///////////////////////////////
// SORT ALL CATEGORIES SHORT //
///////////////////////////////
// league.sortAdjusted();
// System.out.print("Adjusted:\n" + league.toStringShort());
//
// league.sortNormal();
// System.out.print("Normal:\n" + league.toStringShort());
//
// league.sortMomentum();
// System.out.print("Momentum:\n" + league.toStringShort());
//
// league.sortStats();
// System.out.print("Stats:\n" + league.toStringShort());
//
// league.sortPlayers();
// System.out.print("Players:\n" + league.toStringShort());
//
// league.sortSchedule();
// System.out.println("Strength Of Schedule: \n" + league.toStringShort());
///////////////////////////////////////////
// SORT ON ADJUSTED, SHOW ALL CATEGORIES //
///////////////////////////////////////////
league.sortAdjusted();
System.out.print("Adjusted:\n" + league.toStringMed());
////////////////
// OUTPUT CSV //
////////////////
league.sortAdjusted();
System.out.print("CSV: " + "\n" + league.toCSV());
scanny.close();
}
}