/// <summary> /// Changes the windows form based on the victory condition. Calling /// end game check and if it results. /// </summary> private void EndGame() { const int loss = -1; const int win = 1; const int tie = 0; int victory = Crazy_Eights_Game.IsEndGame(); if (victory == loss) { RestartGame(); MessageBox.Show(lossText); } else if (victory == tie) { RestartGame(); MessageBox.Show(tieText); } else if (victory == win) { RestartGame(); MessageBox.Show(victoryText); } }