Esempio n. 1
0
        static public void Check_Down()
        {
            int index = Array.IndexOf(Memo.GetNumbersArr(), 0);

            if (index < 12)
            {
                KeyDown(index);
            }
        }
Esempio n. 2
0
        static public void Check_Up()
        {
            int index = Array.IndexOf(Memo.GetNumbersArr(), 0);

            if (index > 3)
            {
                KeyUp(index);
            }
        }
Esempio n. 3
0
 public bool checkstate()
 {
     int[] game = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0 };
     if (Enumerable.SequenceEqual(game, Memo.GetNumbersArr()))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 4
0
        static public void Check_right()
        {
            int index = Array.IndexOf(Memo.GetNumbersArr(), 0);

            if (index != 3 &&
                index != 7 &&
                index != 11 &&
                index != 15)
            {
                KeyRight(index);
            }
        }
Esempio n. 5
0
        static public void Check_Left()
        {
            int index = Array.IndexOf(Memo.GetNumbersArr(), 0);

            if (index != 0 &&
                index != 4 &&
                index != 8 &&
                index != 12)
            {
                KeyLeft(index);
            }
        }