It may be surprising, but game mechanics are the least protected part of any video game. That’s why there are so many clones of simple mechanics, for instance match-three games. The things you cannot copy too closely are graphics, sounds, text and trademarks.
IANAL (I Am Not A Lawyer)