public string PickedNumber(PickedNumbersToOneGame pickedgame, OneGame one_game) { string result = ""; for (int i = 0; i < 6; i++) { result += JudgePicked(pickedgame.picked_numbers[i], one_game); } return(result); }
public bool BonusDiff(PickedNumbersToOneGame pickedOneLine) { for (int i = 0; i < 6; i++) { for (int j = 0; j < 6; j++) { if (Bonus_number == pickedOneLine.picked_numbers[j]) { return(true); } } } return(false); }
public int CountDiff(PickedNumbersToOneGame pickedOneLine) { int matched = 0; for (int i = 0; i < 6; i++) { for (int j = 0; j < 6; j++) { if (picked_numbers[i] == pickedOneLine.picked_numbers[j]) { matched++; } } } return(matched); }
public void AddPickedNumbersFromPickedArray(buttonManager pickedArray) { OneGame addToOnegame = new OneGame(); addToOnegame.day_time = DateTime.Now.ToString(); for (int i = 0; i < pickedArray.current_enrolled_number; i++) { PickedNumbersToOneGame inst_Numbers = new PickedNumbersToOneGame(); for (int number = 0; number < 6; number++) { inst_Numbers.picked_numbers[number] = pickedArray.pickedArrays[i].picked_numbers[number]; } addToOnegame.picked_game.Add(inst_Numbers); } AddOneGames(addToOnegame); }