Basketball in the google doodle and simulated inputs.

Was looking at the various ways people in reddit were beating the events in today’s google doodle. 

Our India page was showing shooting hoops. 

A bit of a trial and error and this my highest score so far in the game.

My highest score in basketball google doodle using python

Simulate the player events

import pyatspi
import time 

time.sleep(5) 
count=0 
for i in range (1, 10000) :
    pyatspi.Registry.generateKeyboardEvent(65, None, pyatspi.KEY_PRESSRELEASE)
    count=count+1 
    if count < 33:
	time.sleep(0.5107)
    else:
    	time.sleep(0.6)
    print count

 My highest was 30. Try yours.

There was a failed attempt with C, check it out
Space_input

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: