finalizing terminal version

This commit is contained in:
CT
2026-05-04 10:12:02 -05:00
parent a2949645dd
commit 870f4c6680
7 changed files with 161 additions and 75 deletions

View File

@@ -7,11 +7,16 @@ public class PlayerList {
pList = new ArrayList<>();
}
public void clear() {
pList.clear();
}
public void addPlayer(HockeyPlayer p) {
pList.add(p);
}
public boolean removePlayer(HockeyPlayer p) {
public boolean removePlayer(String name) {
HockeyPlayer p = findPlayer(name);
return pList.remove(p);
}