Beispiel #1
0
 public bool isMatch()
 {
     // avoid NullPointerException
     if (generalSituation == null || personalSituation == null)
     {
         return(false);
     }
     return(generalSituation.isFirstRound() && !personalSituation.isTsumo() && !personalSituation.isParent());
 }
Beispiel #2
0
        public bool isMatch()
        {
            if (generalSituation == null || personalSituation == null)
            {
                return(false);
            }
            bool isOpen = false;

            foreach (Mentsu mentsu in comp.getAllMentsu())
            {
                if (mentsu.isOpen())
                {
                    isOpen = true;
                }
            }
            return(personalSituation.isTsumo() && !isOpen);
        }