Using agent-based modeling, we generalize Hotelling's model of spatial competition with more than two firms in a two-dimensional space. Firms choose both price and location to maximize profits. The principle of minimum diffferentiation does not hold in general. Local duopolies emerge from the interaction between firms. Firms do not spread uniformly across the two-dimensional space, nor do they all charge the same price. Firms in more competitive locations charge lower prices and generate less profit.