public (bool, int, int) chooseSplit() { string menu2 = $"{leftStart}Which number would you like to bet on?"; List <string> allNumbers = new List <string>() { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "00" }; Console.SetCursorPosition(0, 10); Console.ForegroundColor = ConsoleColor.Magenta; Console.WriteLine(menu2); int selected1 = 0; int selected2 = 0; bool finished = false; int choice; ListNavigation3Columns list = new ListNavigation3Columns(allNumbers, 12, finished); (finished, selected1) = list.scrollList(); if (selected1 == 0) { (finished, choice) = splitZeros(); if (finished == false && choice == 0) { selected2 = 37; } else { finished = true; } } else if (selected1 == 37) { (finished, choice) = splitZeros(); if (finished == false && choice == 0) { selected2 = 0; } else { finished = true; } } else { List <int> splitOptions = new List <int> { }; (finished, splitOptions) = findSplit(selected1); (finished, selected2) = chooseSplit2(selected1, splitOptions); } return(finished, selected1, selected2); }
public (bool, int) chooseSingleNumber() { string menu2 = $"{leftStart}Which number would you like to bet on?"; List <string> allNumbers = new List <string>() { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "00" }; Console.SetCursorPosition(0, 10); Console.ForegroundColor = ConsoleColor.Magenta; Console.WriteLine(menu2); int selected = 0; bool finished = false; ListNavigation3Columns list = new ListNavigation3Columns(allNumbers, 12, finished); (finished, selected) = list.scrollList(); return(finished, selected); }