def _update_board(game: gamestate.Columns_Gamestate) -> None: 'Updates the game/gameboard if needed' game.clear_blocks() for row in range(0, game._rows): for col in range(0, game._cols): if game.is_empty_cell(row, col): game.bring_blocks_down(row, col) game.check_clearable_blocks() print_game_board(game)
def _clear_blocks_after_land(game: gamestate.Columns_Gamestate) -> None: 'Clears all of the removable blocks in the game' game.convert_landed() game.check_clearable_blocks()