private void PushGameDataToPlayer(botDebugBase player) { try { player.CreateGameBoardInstance(); player.IssueOrderCallback = _CurrentGameEngine.IssueOrder; player.DoMove(); player.IssueOrderCallback = null; ////Windows & Unix compatability. //string allMoves = player.OutputBuffer.Replace("\r\n", "\n"); ////submit moves. //foreach (string move in allMoves.Split(_NewLineSplitter, StringSplitOptions.RemoveEmptyEntries)) //{ // _CurrentGameEngine.IssueOrder(player.Id, move); //} } catch (Exception ex) { System.Diagnostics.Debug.Assert(ex == null, ex.ToString()); } finally { player.Clear(); } }
private void PushGameDataToPlayer(botDebugBase player) { try { player.CreateGameBoardInstance(); player.DoMove(); //Windows & Unix compatability. string allMoves = player.OutputBuffer.Replace("\r\n", "\n"); //submit moves. foreach (string move in allMoves.Split(newline, StringSplitOptions.RemoveEmptyEntries)) { engine.IssueOrder(player.Id, move); } } catch { } finally { player.Clear(); } }