What factors enabled Samori Toure to resist French colonization in West Africa between 1882 and 1898?

What factors enabled Samori Toure to resist French colonization in West Africa between 1882 and 1898?