Пример #1
0
        private void CleanMax3()
        {
            if (bulls == 4)
            {
                ResetGame.WithCondition(Condition.LOOSE);
            }
            else if (cows > 0 && bulls == 0)
            {
                for (int i = 0; i < question.Length; i++)
                {
                    ds.RemoveFromCol(i, question[i]);
                }
            }
            else if (bulls > 0 && cows == 0)
            {
                for (int i = 0; i < question.Length; i++)
                {
                    ds.RemoveExeptCol(i, question[i]);
                }
            }
            else if (bulls == 0 && cows == 0)
            {
                for (int i = 0; i < question.Length; i++)
                {
                    ds.RemoveFromMa3x(question[i]);
                }
            }

            ds.PrintSet(ref Realprint);
        }
Пример #2
0
 private void newGameToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ResetGame.WithCondition(Condition.NEW_GAME);
 }