#! /usr/bin/env python3

"""
This program uses selenium to 
continuously make the moves up
up, right, down, then left
on a game of 2048.
"""

from selenium import webdriver
from selenium.webdriver.common.keys import Keys 

driver = webdriver.Chrome()
driver.get('https://gabrielecirulli.github.io/2048/')

htmlElem = driver.find_element_by_tag_name('html')
while True:
	htmlElem.send_keys(Keys.UP, Keys.RIGHT, Keys.DOWN, Keys.LEFT)

	try:
		stopElem = driver.find_element_by_class_name('game-over')
		break
	except:
		continue

b78fe7f6fbdb45c42d5a985d497ce9253b9cd1c5
<mask token>

<mask token>
driver.get('https://gabrielecirulli.github.io/2048/')
<mask token>
while True:
    htmlElem.send_keys(Keys.UP, Keys.RIGHT, Keys.DOWN, Keys.LEFT)
    try:
        stopElem = driver.find_element_by_class_name('game-over')
        break
    except:
        continue

<mask token>
driver = webdriver.Chrome()
driver.get('https://gabrielecirulli.github.io/2048/')
htmlElem = driver.find_element_by_tag_name('html')
while True:
    htmlElem.send_keys(Keys.UP, Keys.RIGHT, Keys.DOWN, Keys.LEFT)
    try:
        stopElem = driver.find_element_by_class_name('game-over')
        break
    except:
        continue

<mask token>
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome()
driver.get('https://gabrielecirulli.github.io/2048/')
htmlElem = driver.find_element_by_tag_name('html')
while True:
    htmlElem.send_keys(Keys.UP, Keys.RIGHT, Keys.DOWN, Keys.LEFT)
    try:
        stopElem = driver.find_element_by_class_name('game-over')
        break
    except:
        continue

#! /usr/bin/env python3

"""
This program uses selenium to 
continuously make the moves up
up, right, down, then left
on a game of 2048.
"""

from selenium import webdriver
from selenium.webdriver.common.keys import Keys 

driver = webdriver.Chrome()
driver.get('https://gabrielecirulli.github.io/2048/')

htmlElem = driver.find_element_by_tag_name('html')
while True:
	htmlElem.send_keys(Keys.UP, Keys.RIGHT, Keys.DOWN, Keys.LEFT)

	try:
		stopElem = driver.find_element_by_class_name('game-over')
		break
	except:
		continue
