public ReadyPower(int[] map)
        {
            Map = map;

            Senior     = new SeniorC(Map).Comb();
            Para       = new ParaC(Map).Comb();
            TwoPara    = new TwoParaC(Map).Comb();
            Three      = new ThreeC(Map).Comb();
            Street     = new StreetC(Map).Comb();
            Flash      = new FlashC(Map).Comb();
            Full_House = new Full_HouseC(Map).Comb();
            Kare       = new KareC(Map).Comb();
            StrinFlash = new StrinFlashC(Map).Comb();
        }
Beispiel #2
0
        public override int[] Comb()
        {
            int[] flash  = new FlashC(mapAll).Comb();
            int[] street = new StreetC(mapAll).Comb();

            if (flash.Length == 5 && street.Length == 5)
            {
                int count = 0;
                for (int i = 0; i < 5; i++)
                {
                    if (flash[i] == street[i])
                    {
                        count++;
                    }
                    if (count == 5)
                    {
                        return(street);
                    }
                }
            }

            return(new int[0]);
        }