The ruling Botswana Democratic Party (BDP) has won the general election after securing 29 national assembly seats, representing 51% of the vote, the chief justice announced on Friday.