Exámenes - Bingo

En este ejercicio se debe crear un programa que simule una partida de bingo. El jugador irá mostrando nuevos números y podrá tapar los números de su cartón cuando coincida con el número mostrado. El programa avisará cuando se complete una línea o el cartón completo ().

Bingo - Comentarios

Bingo - Ejemplos de código HTML

    <table>
      <tr>
        <td><button type="submit" name="accion" value="1">1</button></td>
        <td></td>
        <td><button type="submit" name="accion" value="2">4</button></td>
      </tr>
      <tr>
        <td><button type="submit" name="accion" value="3">5</button></td>
        <td><button type="submit" name="accion" value="4">7</button></td>
        <td></td>
      </tr>
    </table>

    <p>Número: <span style="font-size: 4rem">8</span></p>
    <table>
      <tr>
        <td><button type="submit" name="accion" value="1">1</button></td>
        <td></td>
        <td><button type="submit" name="accion" value="2">4</button></td>
      </tr>
      <tr>
        <td><button type="submit" name="accion" value="3">5</button></td>
        <td><button type="submit" name="accion" value="4 style="background-color: hwb(240 40% 100%)">7</button></td>
        <td></td>
      </tr>
    </table>

    <p>Número: <span style="font-size: 4rem">7</span></p>
    <table>
      <tr>
        <td><button type="submit" name="accion" value="1" style="background-color: hwb(240 40% 100%)">1</button></td>
        <td></td>
        <td><button type="submit" name="accion" value="2" style="background-color: hwb(240 40% 100%)">4</button></td>
      </tr>
      <tr>
        <td><button type="submit" name="accion" value="3">5</button></td>
        <td><button type="submit" name="accion" value="4" style="background-color: hwb(240 40% 100%)">7</button></td>
        <td></td>
      </tr>
    </table>

    <p>Número: <span style="font-size: 4rem">7</span></p>

    <p style="font-size: 2rem;">¡Línea!</p>