private void Reset2() { counter = 0; Steps = 4; Start = new State(); MyAlg_2 = new Alg_2(); Start.Board[3][3] = 0; Start.Board[4][3] = 7; Start.Board[4][4] = 0; Start.Board[3][4] = 7; if (CurrentPlayer == PlayerRole.White) { Start.NextPlayer = 7; } else { Start.NextPlayer = 7; } Rules.getAvailableList(Start.NextPlayer, Start.Board, Start.AvailablePosition); Current = Start; TempCurrent = Start; UpdateChessBoard(Current); }
private void Reset2() { counter = 0; Steps = 4; Start = new State(); MyAlg_2 = new Alg_2(); Start.Board[3][3] = 0; Start.Board[4][3] = 7; Start.Board[4][4] = 0; Start.Board[3][4] = 7; if (CurrentPlayer == PlayerRole.White) Start.NextPlayer = 7; else Start.NextPlayer = 7; Rules.getAvailableList(Start.NextPlayer, Start.Board, Start.AvailablePosition); Current = Start; TempCurrent = Start; UpdateChessBoard(Current); }