adventofcode.year_2021.day_2021_04.readable
Module Contents
Classes
A Bingo board to play with the giant squid around the submarine |
|
A game of Bingo |
Functions
|
|
|
- class adventofcode.year_2021.day_2021_04.readable.Board(board_array)
A Bingo board to play with the giant squid around the submarine
- Args:
board_array (numpy.array): 2D array representing the initial board configuration
- hit_num(self, picked)
Hit the picked number if it exists in the board
- Args:
picked (int): picked number
- has_won(self)
Check if the current board position is a winning one
- Returns:
bool: True if the board has won
- unmarked_sum(self)
- score(self)
- class adventofcode.year_2021.day_2021_04.readable.Game
A game of Bingo
- run(self, verbose=False)
- first_winner_score(self)
- last_winner_score(self)
- adventofcode.year_2021.day_2021_04.readable.part1()
- adventofcode.year_2021.day_2021_04.readable.part2()