Sixteen ways to defend a walled city