The dynamics of locally adaptive parties under spatial voting