Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 1_snake_game/2_using_object_oriented_programming.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pygame
from pygame.locals import *


class Snake:
def __init__(self, surface):
self.parent_screen = surface
Expand Down Expand Up @@ -63,8 +64,7 @@ def run(self):
elif event.type == QUIT:
running = False

if __name__ == '__main__':

if __name__ == "__main__":
game = Game()
game.run()