We have 2 (or more) heaps of matches.
In his turn, each player takes any number of matches he wants from one or two heaps.
But when he takes from two heaps, he must take the same number from each of the two heaps.
Who takes the last match(es) wins.
Here you can play with just two heaps.
The initial position is randomly choosen such as you should win. But take care, at your first mistake, the program wins !