Help my student with his rock paper scissors game

I teach middle school computer science using App Inventor. He wants it to be two player, not one player playing against a bot. And it mostly works, but the label will not say the correct thing all of the time. Like if it shows a rock and a scissors, the label doesn’t always say “rock wins”.

There has to be a way for this to happen and I’m just not seeing it. Can any of you give any advice after seeing his blocks below? Thanks in advance.

Two players on one device ? How do both players select without them seeing the others selection?

You are on Screen3? A simple game like this can be fulfilled on just one screen.

You should use one if / elseif / elseif ... block, you could combine all the tie outcomes to one test.

How are the variable values getting to Screen3 ?

A quick example of working blocks (can always be improved upon! You do not actually need two players buttons, one will suffice)

1 Like

This is all you need (of course only one screen):

Blocks

1 Like

Thank you so much. I will pass this on.