the readme of Siedler of catan has been written and language correction.

This commit is contained in:
Speedy Gonzalez
2021-12-10 10:36:48 +01:00
parent 3f625e1e47
commit c5a8330d0f
3 changed files with 22 additions and 7 deletions
+6 -6
View File
@@ -27,7 +27,7 @@ public class SiedlerBoard extends HexBoard<Config.Land, Settlement, Road, String
*/
private final HashMap<Point, Field> fields = new HashMap<>();
Config.Faction longestRoadFaction = null;
int longestRoadLenth = 0;
int longestRoadLength = 0;
/**
* Method to create the predefined game field from Config.
@@ -172,13 +172,13 @@ public class SiedlerBoard extends HexBoard<Config.Land, Settlement, Road, String
}
if (currentFaction != null) {
longestRoadFaction = currentFaction;
longestRoadLenth = currentRoad;
longestRoadLength = currentRoad;
}
} else {
for (Config.Faction faction : players.keySet()) {
if (players.get(faction) >= 5 && players.get(faction) > longestRoadLenth) {
if (players.get(faction) >= 5 && players.get(faction) > longestRoadLength) {
longestRoadFaction = faction;
longestRoadLenth = players.get(faction);
longestRoadLength = players.get(faction);
}
}
}
@@ -186,8 +186,8 @@ public class SiedlerBoard extends HexBoard<Config.Land, Settlement, Road, String
}
//todo javadoc
public int getLongestRoadLenth() {
return longestRoadLenth;
public int getLongestRoadLength() {
return longestRoadLength;
}
/**