As the principal of the game, the first player in the first turn in first round is not allowed to skip the turn. The related Code show below: public void skip() { if (skipCount < 4) { addHistory(currentPlayer.getName(), null); handleSkipPlay(); currentPlayerIndex = nextPlayerIndex(); skipCount++; turn++; } else { System.out.print("Your cannot skip! Please choose again!\n"); pause(); } incrementRound(); }
Bug Solved by adding new checking function isFirstPlayer(): public void skip() { if (skipCount < 4 && !isFirstPlayer) { addHistory(currentPlayer.getName(), null); handleSkipPlay(); currentPlayerIndex = nextPlayerIndex(); skipCount++; turn++; } else { System.out.print("Your cannot skip! Please choose again!\n"); pause(); } incrementRound(); }