For the continuity of glory of the early civilizations of the world, the people fought wars in order to maintain their glory. When they won the war their glory increases but when they taste defeat, their glory decrease and slowly the civilization tends towards its end so from this discussion we can conclude that fighting for the glory is the only way for the survival of civilizations in the world.
One way in which the code of Hammurabi, the twelve tables and the Justinian code are similar is that they were all early documents that set laws for human behavior.