Introductory image of Binero


Learn more about the game on my Github repository:

Takuzu is a logic-based puzzle game from Japan. It uses a grid, usually 10x10 or 8x8, filled with 1s and 0s. The goal is to arrange the digits according to these rules:

  • Each row and column must have an equal number of 1s and 0s.
  • No more than 2 of the same digit can be next to each other.
  • No two rows or columns can be the same.

Takuzu is also called Binero or Bento.

The game is fairly straightforward to program in its basic form. The next sections cover the game’s structure and the algorithms that enforce its rules. The code examples are in C.

A Binero object has this fundamental structure:

int **grille ;
int taille ; 

It consists of a grid containing 0s and 1s, and a size variable.

Gameplay Image