The Marine Corps will require all Marines to complete a basic artificial intelligence course by the end of the year.