#!/usr/bin/env python import sys import numpy as np # Import snake game from snake import Snake # Setup QTable qtable=np.zeros((16, 4)) game=Snake() def event_handler(game): if game.snake[0][0]==10: game.direction=6 for i in range(0,10): score=game.run() print("Game ended with "+str(score))