public void SearchInterm() { Figure savedCh = selectedChecker.GetFigure(); Moves m1 = new Moves(); int c = 0; m1.selectedChecker = selectedChecker; selectedChecker.SearchEat(m1); Game.board.DeleteCheckerFromBoard(selectedChecker.x, selectedChecker.y); //убрали шашку с доски SearchIntermRecursion(m1, c); Game.board.ReturnCheckerIntoBoard(selectedChecker); //вернули на доску AddInterm(way[0]); if (savedCh == Figure.checker) { selectedChecker.SetChecker(); } }
private void SelectCheckerAndSearchEat(int x, int y) { Checker ch = board[x, y].GetChecker(); moves.selectedChecker = ch; SelectChecker(ch); ch.SearchEat(); //нашли пути for (int i = 0; i < 4; i++) //отобразили пути { notifySetWays(moves.way[i]); } }