Fix: CurrentState Now Correctly Initialises 'round' Field

This commit is contained in:
GabrieleRadice
2026-03-28 18:28:51 +01:00
parent cee93038cc
commit d0c8108fbc
2 changed files with 4 additions and 4 deletions
@@ -71,7 +71,7 @@ public class CurrentState {
this.player = null; this.player = null;
this.slot = null; this.slot = null;
this.Era = 1; this.Era = 1;
this.round = 0; this.round = 1;
this.NUpper = 0; this.NUpper = 0;
this.NLower = 0; this.NLower = 0;
this.GameStage = GameStages.WAITING; this.GameStage = GameStages.WAITING;
@@ -43,7 +43,7 @@ class CurrentStateTest {
CurrentState curr = new CurrentState(); CurrentState curr = new CurrentState();
curr.PlayerUpdate(p, s); curr.PlayerUpdate(p, s);
curr.RoundUpdate(); curr.RoundUpdate();
assertEquals(1, curr.getRound()); assertEquals(2, curr.getRound());
} }
@Test @Test
@@ -94,7 +94,7 @@ class CurrentStateTest {
CurrentState curr = new CurrentState(); CurrentState curr = new CurrentState();
curr.PlayerUpdate(p, s); curr.PlayerUpdate(p, s);
curr.RoundUpdate(); curr.RoundUpdate();
assertEquals(1, curr.getRound()); assertEquals(2, curr.getRound());
} }
@Test @Test
@@ -146,7 +146,7 @@ class CurrentStateTest {
assertNull(curr.getCurrentPlayer()); assertNull(curr.getCurrentPlayer());
assertNull(curr.getSlot()); assertNull(curr.getSlot());
assertEquals(1, curr.getEra()); assertEquals(1, curr.getEra());
assertEquals(0, curr.getRound()); assertEquals(1, curr.getRound());
assertEquals(0, curr.getNUpper()); assertEquals(0, curr.getNUpper());
assertEquals(0, curr.getNLower()); assertEquals(0, curr.getNLower());
assertEquals(GameStages.WAITING, curr.getGameStage()); assertEquals(GameStages.WAITING, curr.getGameStage());