| Summary: | Cannot show the Option Menu again after skipping error message display | ||
|---|---|---|---|
| Product: | 2021A-CS3343-Gp17-Big2PokerGame | Reporter: | yuctam4-c |
| Component: | GameController | Assignee: | 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
developing a new function to handle the situation 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();
}
|