import slither_api
from time import sleep

print(slither_api.partialScreenCapture(100, 100, 100, 100))

print("begin the game")
slither_api.beginGame()

print("moving top")
slither_api.moveTop()

sleep(3)

print("moving down")
slither_api.moveDown()

sleep(3)

print("moving left")
slither_api.moveLeft()

sleep(3)

print("moving right")
slither_api.moveRight()

sleep(3)

print("moving top left")
slither_api.moveTopLeft()
 def reset(self):
     self.lastScore = 0
     slither_api.beginGame()
     observation = self.getObservation()
     return observation