//int GivePointsToPlayer(possibleAnswers PlayerAnswer) //{ // int AnswerType = CompareAnswers(PlayerAnswer); // switch (AnswerType) // { // case 0: // return 0; // case 1: // return 200; // case 2: // return 100; // case 3: // return 100; // case 4: // return 200; // } // return 0; //} public int CompareAnswers(possibleAnswers PlayerAnswer) { if (FirstPlayerAnswer + 15 < CorrectAnswer && PlayerAnswer == possibleAnswers.MuchHigher) { return(1); } else if (FirstPlayerAnswer < CorrectAnswer && PlayerAnswer == possibleAnswers.Higher) { return(2); } if (FirstPlayerAnswer - 15 > CorrectAnswer && PlayerAnswer == possibleAnswers.MuchLower) { return(4); } else if (FirstPlayerAnswer > CorrectAnswer && PlayerAnswer == possibleAnswers.Lower) { return(3); } return(0); }
public void GetAnswerFromPlayer() { possibleAnswers answer = possibleAnswers.MuchHigher; player.CurrentAnswer = answer; }