static public void Check_Down() { int index = Array.IndexOf(Memo.GetNumbersArr(), 0); if (index < 12) { KeyDown(index); } }
static public void Check_Up() { int index = Array.IndexOf(Memo.GetNumbersArr(), 0); if (index > 3) { KeyUp(index); } }
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); } }
static public void Check_right() { int index = Array.IndexOf(Memo.GetNumbersArr(), 0); if (index != 3 && index != 7 && index != 11 && index != 15) { KeyRight(index); } }
static public void Check_Left() { int index = Array.IndexOf(Memo.GetNumbersArr(), 0); if (index != 0 && index != 4 && index != 8 && index != 12) { KeyLeft(index); } }