This applet plays a very simple-minded game of One Row Nim. You should be able to beat it every time.
Source Code:
OneRowNimApplet.java
OneRowNim.java