Computing: Free Pascal Programming

Programming Home   Home   Contact

Number game (Zuelespill).


Description: Numbers calculation game, inspired by the "Des chiffres et des lettres" (numbers and letters) gameshow on French TV. With a given set of numbers, the player must try by stepwise addition, subtraction, multiplication, or division to find a target number, also given at the beginning of the game round. According to the game rules, all numbers as well as all intermediate results must be and can't only be used once.
Numbers given: 1, 2, 3, 4, 5, target number: 50
Solution (a possible one, among perhaps others):
    2 x 4 = 8     8 - 1 = 7     7 + 3 = 10     10 x 5 = 50
The game may be played without entering any data; all may be done by using the mouse: Click "numbers" and "operators" buttons to enter your solution proposals, intermediate results are automatically filled in. To clear all solution fields, use the "CA" button; to clear the last entry made, click on "CE".
The "Astellungen" (options) menu allows to choose the number of numbers given (4 may be easy, 8 is for experts, I would say), the maximum value of the numbers used as well as the operators.

Free Pascal features: Using buttons to enter data and to clear data entered (mouse-driven application).


Numbers calculation game