Bug 510

Summary: Cannot show the Option Menu again after skipping error message display
Product: 2021A-CS3343-Gp17-Big2PokerGame Reporter: yuctam4-c
Component: GameControllerAssignee: CHAN Tsz Yin <tychan423-c>
Status: RESOLVED FIXED    
Severity: critical CC: hwchan58-c, kaschung4-c, waisumpo2-c, yuctam4-c, yuenchong9-c
Priority: ---    
Version: 2.0   
Hardware: PC   
OS: Windows   

Description yuctam4-c 2020-12-03 11:03:45 HKT
When Skip count equal to 4, the following player is not allowed to skip this turn. When the player chooses to skip this round, the error message shown on the console and the expected output is allowing the player to choose another option.
Comment 1 yuctam4-c 2020-12-03 11:04:57 HKT
developing a new function to handle the situation
Comment 2 yuctam4-c 2020-12-03 11:07:06 HKT
New Funtion Created :

 public void skip() {
        if (skipCount < 4 && !isFirstPlayer) {
            addHistory(currentPlayer.getName(), null);
            handleSkipPlay();
            currentPlayerIndex = nextPlayerIndex();
            skipCount++;
            turn++;
        } else {
            System.out.println("Your cannot skip! Please choose again!");
            pause();
        }
        incrementRound();
    }