Пример #1
0
        public bool isWin()
        {
            clsJudge judge = new clsJudge(this);
            bool     flag  = true;

            if (step != 0)
            {
                flag = false;
            }
            else
            {
                for (int i = 0; i < Done.Count; i++)
                {
                    if (judge.isError(Done[i]))
                    {
                        flag = false;
                    }
                }
            }
            return(flag);
        }
Пример #2
0
        public void Fresh()
        {
            clsJudge judge = new clsJudge(this);
            clsHint  hint  = new clsHint(this);

            if (item.Checked)
            {
                hint.greenHint(Btns);
                if (Done != null)
                {
                    for (int i = 0; i < Done.Count; i++)
                    {
                        hint.errorHint(Done[i]);
                    }
                }
            }
            else
            {
                hint.clearHint(Btns);
            }
        }
Пример #3
0
 public clsHint(clsGame gg)
 {
     judge = new clsJudge(gg);
 }