func (pos *TPosition) ToPrintable() string { var buff = "" for i := 0; i < square.BOARD_SIZE; i++ { var fenchar = piece.ToFenChar(piece.TPiece(pos[i])) if fenchar == ' ' { fenchar = '.' } buff += string(fenchar) if ((i + 1) % square.BOARD_WIDTH) == 0 { buff += "\n" } } buff += fmt.Sprintf("\nturn : %c , depth : %d , wkpos : %s , bkpos : %s\n", TurnToChar(pos.GetTurn()), pos.GetDepth(), square.ToAlgeb(pos.GetKingPos(piece.WHITE)), square.ToAlgeb(pos.GetKingPos(piece.BLACK))) return buff }
func (b *TBoard) ReportMoveGen() string { return fmt.Sprintf("current sq %d : current piece %c : current ptr %d current move %s", b.CurrentSq, piece.ToFenChar(b.CurrentPiece), b.CurrentPtr, b.CurrentMove.ToAlgeb()) }