+ # Construct blocks for each round
+ for round in rounds:
+ blocks += round_blocks(round, puzzles)
+
+ # Also blocks for any puzzles not in any round
+ stray_puzzles = [puzzle for puzzle in puzzles if 'rounds' not in puzzle]
+ if len(stray_puzzles):
+ stray_text = "*Puzzles with no asigned round*"
+ blocks.append(section_block(text_block(stray_text)))
+ for puzzle in stray_puzzles:
+ blocks.append(puzzle_block(puzzle))
+
+ blocks.append(divider_block())
+
+ return blocks
+
+def hunt_link_block(turb, hunt):