Nim, version 1.0, 2015-09-16
Rolf Ptter

Several rows of up to 13 objects are given. Two players move in turn. In each turn, they have to take away one to all objects of a row they choose. They may not pass. The player who takes the last object wins (normal game) or loses (misre) according to the stipulation at the beginning of the game.

When the program is started on the handheld, the mouse cursor is shown. You can control the game either by mouse cursor and click key, or hide the cursor by pressing key "c" (a second press on "c" brings the mouse cursor back again) and then control the game via the arrow keys and [Enter]. The click key then works as [Enter].

First screen (game):
If it's a player's turn, you have to mark an object either by mouse cursor or by the arrow keys as described above. The object and its neighbors to the right are then highlighted. Press [Enter] or the Nim!-button to carry out the move (=take away the highlighted objects). Press "h" or "?" to get a hint for your next move (the recommended take is highlighted). Press  "n" to have the current nim-sum displayed (and the next if a take is already highlighted). Press any key to hide that window and continue the game.

Number screen (via menu items Game->Number of Objects)
Click on the arrow symbols to increase or decrease the number of objects in a row, or use the arrow keys if the cursor is hidden.
Click on the Ok-button to confirm your choice for the current session, click on the Store-button to save your choice on the handheld.
The stored configuration will be the start configuration when you next start the program. 
The [Tab]-key changes from button to button. You can activate the highlighted button by pressing [Enter]

Parameter screen (via menu items Game->Players and Type)
Use the arrow key up and down to change the players, use arrows left and right to change the game type.

For an explanation of the nim-sum and the winning strategy based on it see the wikipedia article on Nim, https://en.wikipedia.org/wiki/Nim. This strategy is implemented in the AI of the progam. Once a winning position is reached, the AI makes no mistakes. 