Google sometimes transforms its logo on its homepage to mark special occasions, you may know it as Google Doodle. The doodle of June 1, 2017 was surprisingly very simple and extremely addictive.
Cricket is the most followed sport in the Indian subcontinent. Most of us, Indians, think that cricket is our national sport even though it is not. And it was the first day of the ICC Champions Trophy. The doodle meant a lot.
To play the game you just have to click at the right moment to hit the ball bowled by a snail and score as many runs as you can. If you miss the ball then you are out and you must start the game again from Zero. Yes, it is that simple, but very enjoyable. I ended up spending a whole afternoon on it. I also made sure all of my friends were playing it.
The game became pretty competitive very fast, so I had to think of ways to score higher than everyone else. I searched for a few ideas, saw a video and was very impressed. The guy in the video clicked continuously as fast as his fingers allowed him and his batsman kept on swinging his bat and didn’t let the ball get past him. Things people do… . You could play the game with your eyes closed, literally.
I knew what I had to do. I had to fake mouse-clicks. I used xdotool (I use ubuntu 16.04). With just a few copy-paste operations and fewer adjustments to some parameters, I successfully scored more than any of my friends. I also reached the game’s highest score possible- 999.
Just in case you need to win clicking games in the future:
- Open terminal and run the following commands to install xdotool.
sudo apt-get update
sudo apt-get install xdotool
2. The following command simulates mouse left-clicks at the location of the mouse pointer. The number after “ — repeat” indicates the total number of clicks before the clicking stops. The number after “ — delay” is the pause between successive clicks and is measured in milliseconds. The “1” at the end is for mouse left-click.
xdotool click --repeat 9999999 --delay 10 1
Caution: You will be left-clicking wherever you take your pointer so make sure you don’t have any unnecessary windows open. Use Alt+Tab to switch to your terminal and Ctrl+C to quit the running program.
xdotool is a very useful tool that lets you simulate keyboard input and mouse activity, move and resize windows, etc. Find more about its commands here.
My high score:
Thanks a lot for reading! Share your thoughts in the comments.