//checks if scorecard already contains combination - in this case it returns scorecardvalue. Otherwise uses rulebook to determnine value for the combination public int ReturnCombinationValues(int indexvalue) { if (playerOne.ScorecardContainsCombinedValue(indexvalue + 6)) { return(playerOne.getScoreCardValue(indexvalue + 6)); } else { int[] values = new int[] { Rulebook.GetOnePairValue(diceValues), Rulebook.GetTwoPairValue(diceValues), Rulebook.GetThreeOfAKindValue(diceValues), Rulebook.GetFourOfAKindValue(diceValues), Rulebook.GetFullHouseValue(diceValues), Rulebook.GetSmallStraightValue(diceValues), Rulebook.GetLargeStraightValue(diceValues), Rulebook.GetChanceVValue(diceValues), Rulebook.GetYatzeeValue(diceValues) }; return(values[indexvalue]); } }