<style> table { border-collapse: separate; border-spacing: 0; } td { /* couleur neutre par défaut pour éviter une bordure blanche qui écrase */ border: 1px solid #ccc; padding: 4px; } .red { border: 1px solid red !important; /* fallback : forcer visuellement la bordure supérieure si nécessaire */ box-shadow: 2px -1px red; } </style>This repo contains the code of the famous game called Taquin. The goal of the game is to reorder the pieces in the grid using the empty square. You are allowed to "move" the empty square and exchange it with a number in the grid like this :
| 1 | 2 | 3 | 4 |
| 5 | 2 | 7 | 8 |
| 9 | 10 | 11 | 12 |
| Empty | 13 | 14 | 15 |
| 1 | 2 | 3 | 4 |
| 5 | 2 | 7 | 8 |
| 9 | 10 | 11 | 12 |
| 13 | Empty | 14 | 15 |
| 1 | 2 | 3 | 4 |
| 5 | 2 | 7 | 8 |
| 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | Empty |