Task 11 Linking progress for now.

NOTE: Yeah idk if this is correct or not, but that's it for now

Signed-off-by: Immanuel Alvaro Bhirawa <u7280427@anu.edu.au>
This commit is contained in:
Immanuel Alvaro Bhirawa
2023-05-04 13:05:56 +10:00
parent cf4bb47c8f
commit ad3a9c4a00
2 changed files with 59 additions and 198 deletions

View File

@@ -508,9 +508,11 @@ public class BlueLagoon {
public static int[] calculateIslandLinksScore(String stateString){
State state = new State(stateString);
int[] scores = new int[state.getNumPlayers()];
for (int i = 0; i < state.getNumPlayers(); i++) {
scores[i] = state.scoreLinks(i);
}
return scores;
}