Skip to content

Instantly share code, notes, and snippets.

@mbrumlow
Created July 26, 2019 03:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbrumlow/49f0a3fa311cc3002e4e1fae2e290b3b to your computer and use it in GitHub Desktop.
Save mbrumlow/49f0a3fa311cc3002e4e1fae2e290b3b to your computer and use it in GitHub Desktop.
#!/bin/bash
xdotool mousemove 100 100
xdotool click 1
for i in `rand -M 3 -N 1000`; do
echo -n "Play $i "
case "$i" in
"0")
echo "ROCK";
xdotool mousemove 320 620
xdotool click 1
;;
"1")
echo "PAPER";
xdotool mousemove 960 620
xdotool click 1
;;
"2")
echo "SCISSORS";
xdotool mousemove 1600 620
xdotool click 1
;;
esac
sleep 0.4
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment