INSTRUCTIONS:

First choose the number of matches. Then take 1, 2 or 3 matches. The applet does the same. Whoever takes the last match loses!