A coupled inverted pendula model of competition and cooperation is proposed to develop a purely mechanical implementation comparable to the Lotka-Volterra competition model. It is shown numerically that the proposed model can produce the four stable equilibriums analogous to ecological coexistence, two states of dominance, and scramble. The authors also propose two types of open-loop strategies to switch the equilibriums. The proposed strategies can be associated with an attack and a counter attack of agents through a metaphor of martial arts.