adjusted the model infield creation to represent the current view postion regarding the placement of the teams on the board

This commit is contained in:
Hanno Fleischer
2024-11-16 22:31:11 +01:00
parent 44b623f9fd
commit 0845aa80f9

View File

@@ -17,10 +17,10 @@ public Board() {
for (int i = 0; i < 40; i++) { for (int i = 0; i < 40; i++) {
if (i % 10 == 0) { if (i % 10 == 0) {
infield[i] = new StartNode( infield[i] = new StartNode(
i == 0 ? Color.ARMY : i == 0 ? Color.AIRFORCE :
i == 10 ? Color.AIRFORCE : i == 10 ? Color.CYBER :
i == 20 ? Color.CYBER : i == 20 ? Color.NAVY :
Color.NAVY Color.ARMY
); );
} else if (i == 4 || i == 14 || i == 24 || i == 34) { } else if (i == 4 || i == 14 || i == 24 || i == 34) {
infield[i] = new BonusNode(); infield[i] = new BonusNode();