The worksheet

This screen allows a player to make calculations to find the best stroke when the game situation is too complex to do the calculations mentally.

The screen shows :

    • the state of the heaps,
    • a list to enter numbers and make operations, with a flashing cursor which shows the insertion position,
    • 14 keys to enter numbers or operators.

An alternate key allows to display on 10 of these keys the numbers 0 to 9 or the operators, and the other 3 keys allow the backspace, and the insertion of a space or an end of line.

The operators are:% for modulo, ^ for bitwise exclusive or, + for addition, - for subtraction, b for the binary representation, before deleting, and moving the cursor one character or line forward or backward.

Unary operators (% and b) apply to the word that immediately precede them in the line with no spaces, provided that it is a number and the operator is inserted on a space or a newline, then they perform the calculus and insert the result following the operator and the "=". Otherwise the single character is inserted.

Operators ^, + and - operate in the same way on the two words that precede them in line.

When the player leaves the screen, his list of numbers is saved to be restored when redisplaying his worksheet.

Toolbar buttons allow to display help screen, to change the display mode between decimal and octal for the state of the heaps and the new entries and new calculations, and to erase the entire list of numbers.