les pions de couleur

This commit is contained in:
2024-04-18 15:35:11 +02:00
parent 533831b9c3
commit 5a257326a5

View File

@@ -3,7 +3,7 @@
function afficher_pions($joueurs) function afficher_pions($joueurs)
{ {
foreach ($joueurs as $joueur) { foreach ($joueurs as $joueur) {
echo '<img src="img/pions/pion1.png" alt="pion1" width="50"/>'; echo '<img src="img/pions/pion' . $joueur['rang'] . '.png" alt="pion' . $joueur['rang'] . '" width="50"/>';
} }
} }