//a b c and d = starts of ranges in which we count the win total of 8 different values, compared to each other, for each range for(a=3; a<32768; a++){ for(b=2; b max_wins) wins_t = wins_d + wins_c + wins_b + wins_a; } } } //D for(start_d = min_start_d; start_d