Exemple #1
0
        public void GenerateMovePositions()
        {
            Console.WriteLine("Vanga: GenerateMovePositions");
            var cells = _desk.Cells;

            _desk.CheckIfNeedBeate();
            if (_desk.NeedBeat)
            {
                CellPosition cellPosition = null;
//                var thread = new Thread(() =>
//                {
                cellPosition = SelectBestBeatCombination(_desk);
//                }, 2000000000);
//                thread.Start();
//                thread.Join();
                if (cellPosition == null)
                {
                    return;
                }
                Console.WriteLine($@"Vanga: Click = r:{cellPosition.Get_row()} c:{cellPosition.Get_column()}");
                _desk.GetCell(cellPosition).Click(true);
                _vangaMadeTurn = true;
            }
            else
            {
                foreach (var cell in cells)
                {
                }
            }
        }