#!/usr/bin/env python import puzzler.puzzles import puzzler.coordsys class MyPuzzle(puzzler.puzzles.Pentominoes): height = 3 width = 21 def coordinates(self): holes = set(((4,1), (10,1), (16,1))) for y in range(self.height): for x in range(self.width): if (x,y) not in holes: yield puzzler.coordsys.Cartesian2D((x, y)) if __name__ == '__main__': puzzler.run(MyPuzzle)