# ALGORITHM GAMES

- When it is a player’s move he can choose some of the horses (at least one), but not all of them, and move with all chosen ones.

Solution: You are in a losing position if and only if the grundy numbers of all the positions, where horses are, are the same.

Could someone plz explain why this works?

Link to article - https://www.topcoder.com/thrive/articles/Algorithm%20Games