| 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: | GameController | Assignee: | 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
developing a function to ensure the player is not the first player in the first round 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();
}
|