The evolution of spear-throwing and medieval combat strategies