A young warrior imprisoned after defeat must master the samurai code over three years to earn his freedom.