Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Latest commit

 

History

History
45 lines (29 loc) · 1 KB

File metadata and controls

45 lines (29 loc) · 1 KB

Hitori

Description

This repository contains an academic project developed for the Laboratórios de Informática II (LI2) course at the University of Minho.

The project implements a command-line program in C that allows users to play, validate, and solve a logic puzzle (hitori) based on symbol uniqueness, orthogonal adjacency rules, and connectivity constraints. The game was written in Portuguese.

How to Run

Compile the game

make

Run the game

make executar

Run tests

make testar

Available Commands

  • g <file> – save the current game state

  • l <file> – load a game state from a file

  • <coord> – select a cell (<column> <row>)

  • b <coord> – mark a cell as white (uppercase)

  • r <coord> – cross out a cell (#)

  • v – verify all puzzle constraints

  • a – apply logical deductions once

  • A – apply deductions until no changes occur

  • R – solve the puzzle

  • d – undo the last action

  • s – exit the program