knock about

Mittelstufe (B1) informal

To move around a place without a plan, or to hit someone repeatedly.

"We knocked about the old town for a few hours before finding a café we liked."