13 size
= width
, height
= 320, 240
17 screen
= pygame
.display
.set_mode(size
)
20 def draw_grid(screen):
22 background = pygame.Surface(screen.get_size())
23 background = background.convert()
24 background.fill(black)
29 d.line(background, white, (0, y*10), (399, y*10), 1)
31 d.line(background, white, (x*10, 0), (x*10, 399), 1)
33 screen.blit(background, (0, 0))
37 for event in pygame.event.get():
38 if event.type == pygame.QUIT:
46 # ----------------------------------- TESTS ---------------------------------- #
50 class ModuleTest(unittest
.TestCase
):
51 """Main test case for this module.
59 if __name__
== '__main__':