You have to remember this is merely a logic puzzle devised to have a non-intuitive solution. The pirates thing is merely a pasted-on theme. If it helps, consider these are robots who must follow a set of predetermined rules.