private void Chessboard1_PieceMoved(Chessboard sender) { ccLogging.AppendText("(" + sender.piecesLight.Count + ") "); foreach (ChessPiece c in sender.piecesLight) { ccLogging.AppendText("[" + sender.ChessPiecePositionToString(c.Xindex, c.Yindex).Replace(" ", "") + " " + c.pieceType.ToString() + "], "); } ccLogging.AppendText(Environment.NewLine + Environment.NewLine); ccLogging.AppendText("(" + sender.piecesDark.Count + ") "); foreach (ChessPiece c in sender.piecesDark) { ccLogging.AppendText("[" + sender.ChessPiecePositionToString(c.Xindex, c.Yindex).Replace(" ", "") + " " + c.pieceType.ToString() + "], "); } ccLogging.AppendText(Environment.NewLine + Environment.NewLine); ccLogging.AppendText(sender.BoardToString()); ccLogging.AppendText(Environment.NewLine); ccLogging.AppendText("Nodes: " + sender.nodesCount + Environment.NewLine); ccLogging.AppendText("Moves: " + sender.movesCount + Environment.NewLine); ccLogging.AppendText("Elapsed seconds: " + (sender.elapsedTime / 1000).ToString()); if (sender.IsLightTurn()) { ccLogging.AppendText(Environment.NewLine + "LIGHT TURN"); } else { ccLogging.AppendText(Environment.NewLine + "DARK TURN"); } ccLogging.AppendText(Environment.NewLine + "----------------------------"); ccLogging.AppendText(Environment.NewLine + Environment.NewLine); ccLogging.ScrollToCaret(); }