-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGame.java
More file actions
30 lines (25 loc) · 1.07 KB
/
Game.java
File metadata and controls
30 lines (25 loc) · 1.07 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
import java.util.ArrayList;
public class Game {
String learningPath;
String languages[];
ArrayList<CodingChallenge> codingChallenges; //list of challenges held within game (unique for each student)
ArrayList<CodingChallenge> assignedChallenges;//challenges assigned by teacher to student
ArrayList<CodingChallenge> inProgressChallenges; //in progress challenges
ArrayList<CodingChallenge> completedChallenges; //completed
public Game() {
learningPath = "NONE";
languages = new String[]{"C", "C++", "C#", "Java", " Python"};
codingChallenges = new ArrayList<>();
assignedChallenges = new ArrayList<>();
inProgressChallenges = new ArrayList<>();
completedChallenges = new ArrayList<>();
}
public Game(String lp) {
learningPath = lp;
languages = new String[]{"C", "C++", "C#", "Java", " Python"};
codingChallenges = new ArrayList<>();
assignedChallenges = new ArrayList<>();
inProgressChallenges = new ArrayList<>();
completedChallenges = new ArrayList<>();
}
}