Complex sentence: Several bandits are killed according to Kambei's plan is to kill the bandits one-by-one as they try and enter the village using phalanxes of farmers armed with bamboo spears.
Split into simpler sentences: Several bandits are killed according to Kambei's plan. As they individually try and enter the village, they are hunted down and killed using phalanxes of farmers armed with bamboo spears.