Jeu de Taquin (15-puzzle) is a classic sliding tile game implemented in C.
Your goal: slide the numbered tiles into the empty space until the board is solved.
Features:
- Multiple board sizes (4×4, 5×5, 6×6)
- Randomly shuffled puzzles
- Load saved puzzles (
facile.txt,moyenne.txt,difficile.txt) - Interactive terminal interface with dynamic updates (clear screen, board rendering).
Jeu-De-Taquin/
├── bin/ # Compiled executable
├── build/ # Object files
├── data/ # Puzzle states
│ ├── facile.txt # Easy (4×4)
│ ├── moyenne.txt # Medium (5×5)
│ └── difficile.txt # Hard (6×6)
├── docs/ # Documentation & report
├── include/ # Header files
├── src/ # Source code
├── Makefile # Build automation
└── README.md # Project info
git clone <repository_url>
cd Jeu-De-Taquin
make
./bin/Jeu_de_Taquingit clone <repository_url>
cd Jeu-De-Taquin
make
.bin\Jeu_de_Taquin.exe!!! Requires
gccandmake. On Windows, install MSYS2 or MinGW.
1. Play new game
2. Load saved game
3. Options (choose board size)
4. Quit
- G → (Gauche = Left)
- D → (Droite = Right)
- H → (Haut = Up)
- B → (Bas = Down)
- Q → Quit
+----+----+----+----+
| 1 | 5 | X | 3 |
+----+----+----+----+
| 2 | 4 | 6 | 8 |
+----+----+----+----+
| 9 | 10 | 7 | 11 |
+----+----+----+----+
| 13 | 14 | 15 | 12 |
+----+----+----+----+
-
make: command not found- Ubuntu/Debian →
sudo apt install build-essential - macOS →
xcode-select --install - Windows → Install MSYS2/MinGW
- Ubuntu/Debian →
-
Executable won’t run
- Linux/macOS →
./bin/Jeu_de_Taquin - Windows →
.bin\Jeu_de_Taquin.exe
- Linux/macOS →
- Add victory detection & score tracking
- Improve shuffle → always solvable puzzles
- Undo/redo functionality
- Ncurses UI for colorful display
- Automated solver (A*)
Contributions, issues, and suggestions are welcome!
Fork this repo, create a branch, and submit a PR.