Computing: Free Pascal Programming

Logic number puzzle: Futoshiki.


Download Futoshiki desktop application (Windows 64bit) Download Futoshiki source code (Lazarus/Free Pascal)

Description: Futoshiki (also called Hutoshiki, and sometimes Unequal) is a puzzle game with numbers to be placed onto a grid. The rules of the game are as follows:
    1. In each field of the NxN grid, write numbers from 1 to N.
    2. In each row and each column, each number must be written exactly once.
    3. All comparison relationships must be fulfilled. "A > B" meaning that the number in field A must be greater than the number in field B.
The game is a typical logic game: In order to find the correct solution of the puzzle, you have to explore the numbers already written, and by logical thinking (concluding from what you know, that a given field must be a given number, or on the contrary, can't be a given number), determine, which fields have to contain which numbers.
The game is played with the mouse: Click the field, where you want to write a number, then click one of the number buttons to write the corresponding number or Clear to remove the number from the actually selected field.

Change log:
Version 1.0 (September 2021): Original program.
Version 1.1 (November 2021):
    - Issue of incomplete comparison operator display between 5th and 6th column resolved.
    - Some speeding up of the puzzle generation.

Free Pascal features: Creating objects during run-time. Changing the color of shapes and the caption of static-texts during run-time. Using buttons to insert characters into a given control's caption. Two-dimensional arrays, arrays of records (classic Pascal).

Screenshot:

Futoshiki - a free logic game for PC