import pygame from pygame.locals import * import src.level as level import src.snake as snake import src.window as window LEVEL = 1 HEIGH = 10 WIDTH = 20 def main(): test = snake.List((5, 5), None) test = snake.List.List_add(test, (6, 6)) test = snake.List.List_add(test, (7, 7)) test = snake.List.List_add(test, (8, 8)) print(test) print("Size : ", snake.List.List_size(test)) matrix = level.init_level(HEIGH, WIDTH) matrix[5][5] = 1 level.spawn_apple(matrix, HEIGH, WIDTH) print(matrix) snake.Snake_move(matrix, test, "left") if __name__ == "__main__": main()