Пример #1
0
 private void reportValue(Case c)
 {
     lines.clearHypothese(c.Line, c.Valeur);
     columns.clearHypothese(c.Column, c.Valeur);
     squares.clearHypothese(c.Square, c.Valeur);
     c.Hypotheses.Clear();
 }
Пример #2
0
        private bool jumeauxTriples(Case c)
        {
            bool action = false;

            foreach (char v in c.Hypotheses)
            {
                if (squares.isHPML(c.Square, c.Line, v))
                {
                    if (lines.clearHypothese(c.Line, c.Square, v))
                    {
                        action = true;
                    }
                }
                if (squares.isHPMC(c.Square, c.Column, v))
                {
                    if (columns.clearHypothese(c.Column, c.Square, v))
                    {
                        action = true;
                    }
                }
            }
            return(action);
        }