/// <summary> /// Called after the current round is over. GameplayForm decides whether the round is over based on whether /// TurnOver() returned true or false. /// /// Author John Santias Nguyen October 2017 /// </summary> public void NextRound() { if (currentRound == numRounds) { Rankings ranks = new Rankings(numPlayers.Length, theOppo); ranks.Show(); } else if (!TurnOver()) { currentRound++; currentPlayer = 0; BeginRound(); if (winnerFound) { winnerFound = false; //resets the bool for the TurnOver() method } } }
/// <summary> /// Initiates the next round, or if maximum rounds ends the game and shows the rankings window /// Author Greyden Scott & Sean O'Connell October 2017 /// Written, edited and tested by both team members /// </summary> public void NextRound() { curr_round++; if (curr_round <= noRounds.Length) { start_player++; if (start_player == noPlayers.Length) { start_player = 0; } CommenceRound(); } if (curr_round > noRounds.Length) { //Maxrounds reached show ranking form Rankings rankingsWindow = new Rankings(this); rankingsWindow.Show(); } }
/// <summary> /// Called after the current round is over. GameplayForm decides whether the round is over based on whether /// TurnOver() returned true or false. /// /// Author John Santias Nguyen October 2017 /// </summary> public void NextRound() { if (!TurnOver()) { // if (currentRound <= numRounds) //{ currentRound++; //} currentPlayer = 0; BeginRound(); if (currentRound > numRounds) { Rankings ranks = new Rankings(numPlayers.Length, TheOppo); ranks.Show(); } if (winnerFound) { winnerFound = false; } } }