It's the same thing as rock, paper, and scissors. you need to drag the objects down every time. The variables work but you may need to squint to see them.
Notes & Credits
I am in coding class and our whole class worked on the same concept. My teacher taught us how.