-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
39 lines (33 loc) · 1.01 KB
/
Copy pathMain.java
File metadata and controls
39 lines (33 loc) · 1.01 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
public class Main {
public static void main(String[] args){
String info;
Scoreboard game = new Scoreboard("Red", "Blue");
info = game.getScore();
System.out.println(info);
game.recordPlay(1);
info = game.getScore();
System.out.println(info);
game.recordPlay(0);
info = game.getScore();
System.out.println(info);
info = game.getScore();
System.out.println(info);
game.recordPlay(3);
info = game.getScore();
System.out.println(info);
game.recordPlay(1);
game.recordPlay(0);
info = game.getScore();
System.out.println(info);
game.recordPlay(0);
game.recordPlay(4);
game.recordPlay(0);
info = game.getScore();
System.out.println(info);
Scoreboard match = new Scoreboard("Lions", "Tigers");
info = match.getScore();
System.out.println(info);
info = game.getScore();
System.out.println(info);
}
}