From 3e0c6e3abeb13a8e2827887856ad00f20c29f763 Mon Sep 17 00:00:00 2001 From: Didictateur Date: Sat, 28 Feb 2026 23:09:11 +0100 Subject: [PATCH] hidden tiles --- frontend/pages/riichi/chap5.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/pages/riichi/chap5.html b/frontend/pages/riichi/chap5.html index 577627a..6967538 100644 --- a/frontend/pages/riichi/chap5.html +++ b/frontend/pages/riichi/chap5.html @@ -166,13 +166,19 @@ // Créer une nouvelle partie et afficher les mains const game = new Game(); - console.log(game) for (let i = 0; i < 4; i++) { const handDiv = document.getElementById(`hand-${i}`); handDiv.innerHTML = ''; for (const tile of game.hands[i].tiles) { const tileDiv = document.createElement('div'); - tileDiv.innerHTML = tile.getSVG(); + if (i === 0) { + tileDiv.innerHTML = tile.getSVG(); + } else { + tileDiv.innerHTML = ` + + + `; + } handDiv.appendChild(tileDiv); } }