Exámenes - Juego de dados

En este ejercicio se debe crear un programa que simule una partida de un juego de dados de tres jugadores. Cada jugador tira dos dados y puntúa el valor de los dados que no coincidan con algún dado de los otros jugadores. Gana el jugador o los dos jugadores que saquen más puntos.

Juego de dados - Comentarios

Juego de dados - Ejemplos de código HTML

  <table style="border-spacing: 30px 5px;">
    <tr style="font-size: 4rem;">
      <th></th>
      <th>&#128054;</th>
      <th>&#128049;</th>
      <th>&#128045;</th>
    </tr>
    <tr>
      <th style="font-size: 2rem;">Tirada:</td>
      <td>
        <img src="img/dados/4.svg" alt="4" width="80" height="80">
        <img src="img/dados/4.svg" alt="4" width="80" height="80">
      </td>
      <td>
        <img src="img/dados/3.svg" alt="3" width="80" height="80">
        <img src="img/dados/5.svg" alt="5" width="80" height="80">
      </td>
      <td>
        <img src="img/dados/6.svg" alt="6" width="80" height="80">
        <img src="img/dados/3.svg" alt="3" width="80" height="80">
      </td>
    </tr>
    <tr>
      <th style="font-size: 2rem;">Puntos:</th>
      <td>
        <img src="img/dados/4.svg" alt="4" width="80" height="80">
        <img src="img/dados/4.svg" alt="4" width="80" height="80">
      </td>
      <td>
        <img src="img/dados/5.svg" alt="5" width="80" height="80">
      </td>
      <td>
        <img src="img/dados/6.svg" alt="6" width="80" height="80">
      </td>
    </tr>
    <tr style="font-size: 4rem;">
      <th style="font-size: 2rem;">Ganador:</th>
      <th>&#128081;</th>
      <th></th>
      <th></th>
    </tr>
  </table>
  <table style="border-spacing: 30px 5px;">
    <tr style="font-size: 4rem;">
      <th></th>
      <th>&#128054;</th>
      <th>&#128049;</th>
      <th>&#128045;</th>
    </tr>
    <tr>
      <th style="font-size: 2rem;">Tirada:</td>
      <td>
        <img src="img/dados/5.svg" alt="5" width="80" height="80">
        <img src="img/dados/4.svg" alt="4" width="80" height="80">
      </td>
      <td>
        <img src="img/dados/6.svg" alt="6" width="80" height="80">
        <img src="img/dados/4.svg" alt="4" width="80" height="80">
      </td>
      <td>
        <img src="img/dados/6.svg" alt="6" width="80" height="80">
        <img src="img/dados/5.svg" alt="5" width="80" height="80">
      </td>
    </tr>
    <tr>
      <th style="font-size: 2rem;">Puntos:</th>
      <td>
      </td>
      <td>
      </td>
      <td>
      </td>
    </tr>
    <tr style="font-size: 4rem;">
      <th style="font-size: 2rem;">Ganador:</th>
      <th colspan="3">¡Empate!</th>
    </tr>
  </table>