This project made for school project.
I have used Java for this code.
Briefly,determining the number of colonies and their populations by taking input from the console.And It has an algorithm that constantly fights until there is only one colony left.