예제 #1
0
        private bool IsPickCorrect(int idA, int idB, out FieldPairs pairs)
        {
            pairs = null;
            bool res = false;

            var pair = FieldPairs.First(p => p.FieldA.Id == idA || p.FieldB.Id == idA);



            return(res);
        }
예제 #2
0
        private bool IsPickCorrect(int idA, int idB)
        {
            BonusGame.CurrentPair = null;
            bool res = false;

            var pair = FieldPairs.First(p => p.FieldA.Id == idA || p.FieldB.Id == idA);

            bool a = pair.FieldA.Id == idA || pair.FieldA.Id == idB;
            bool b = pair.FieldB.Id == idA || pair.FieldB.Id == idB;

            res = a == true && b == true;

            if (res)
            {
                BonusGame.CurrentPair = pair;
            }

            return(res);
        }