Bug 511

Summary: [WRONG BUG CASE, PLS IGNORE IT]The first player should not skip the first turn
Product: 2021A-CS3343-Gp17-Big2PokerGame Reporter: yuctam4-c
Component: GameControllerAssignee: CHAN Tsz Yin <tychan423-c>
Status: VERIFIED INVALID    
Severity: enhancement CC: hwchan58-c, kaschung4-c, waisumpo2-c, yuctam4-c, yuenchong9-c
Priority: Normal    
Version: 2.0   
Hardware: PC   
OS: Windows   

Description yuctam4-c 2020-12-03 11:32:29 HKT
The first player in the first turn is not expected to skip the first turn in the first round.
Comment 1 yuctam4-c 2020-12-03 11:33:33 HKT
developing a function to ensure the player is not the first player in the first round
Comment 2 yuctam4-c 2020-12-03 11:34:27 HKT
New Function Added

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();
    }