Rock Paper scissors

Trashcan Paul shared a post on Instagram: "Comeback of the century 
(Via: @juanbuis / @peterganunis)". Follow their account to see 10810 posts.

Can someone explain how to program this I'm totally lost.

I actually made a similar project not long ago here. You can take a look inside if you like, I added some notes. Not sure if this couts as explaining it, but hopefully it somewhat helps.

Cool project

It's a good candidate for Topic of the month, December 2022

Impressive project! concise code, useful comments, a joy to watch it run.
Btw: code can even be shortened by using: