and then carthage , with nothing but bare hands and tenacity , built weapons and forced rome into a two-year war that ended only with complete destruction of the city , the inhabitants throwing themselves into their flaming houses rather than surrender .