Rock-paper-scissors game with strategy

Hello! I am new to coding in general. I am trying to create a game of rock-paper-scissors using the code component, in which the computer doesn’t choose randomly, but according to the player’s previous choice (by choosing the symbol that defeats the player’s previously chosen symbol). I would like to use image components for the player’s and computer’s choices, a keyboard component to get responses and a text component to display the outcome of every round. Since I am an absolute beginner, I am facing huuuge difficulties. I have tried dozens of different versions, but nothing seems to be working, so I think I need to start with basics, such as creating variables, updating their values, storing key responses etc. Does anyone have any suggestions about tutorials or manuals for beginners?


Peirce, J. W., Hirst, R. J. & MacAskill, M. R. (2022). Building Experiments in PsychoPy. 2nd Edn London: Sage.

might be in your library. It is a good start.

Best wishes Jens