-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigData.java
More file actions
37 lines (32 loc) · 774 Bytes
/
ConfigData.java
File metadata and controls
37 lines (32 loc) · 774 Bytes
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
/*
* Class that represents data stored in one entry of dictionary/node
*/
package assignment2;
public class ConfigData {
// Attribute declaration
String configData;
int scoreNum;
/**
* Constructor creates a configData object storing a configuration string and score
* @param config configuration of gameboard
* @param score current score of gameboard
*/
public ConfigData(String config, int score){
this.configData = config;
this.scoreNum = score;
}
/**
* get config method returns the configuration of the date
* @return configuration of data
*/
public String getConfig(){
return configData;
}
/**
* get score method returns the score of the configuration
* @return score
*/
public int getScore(){
return scoreNum;
}
}