This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import numpy as np | |
| import matplotlib.pyplot as plt | |
| def run_bingo_game(max_val: int, cards: np.ndarray) -> np.ndarray: | |
| """ | |
| Run the bingo game until all cards have a BINGO! | |
| In the cards -1 represents a number which has been had | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import argparse | |
| import random | |
| from reportlab.lib.pagesizes import A4 | |
| from reportlab.pdfgen import canvas | |
| from reportlab.lib.units import mm | |
| def generate_bingo_card(pool: list[int], grid_size: int, add_free: bool = True): | |
| """Generate a single bingo card using numbers from the shuffled pool.""" |