Rock paper scissors Spock lizard

Rock paper scissors Spock lizard#

https://upload.wikimedia.org/wikipedia/commons/b/b4/Roshambo-Laos.jpg

Fig. 19 Children in Laos playing rock paper scissors
CC BY-SA 3.0. By Thomas Schoch. Source: Wikimedia Commons
#

You must have played Rock paper scissors in your childhood. In this problem, we will implement a variation with Spock and lizard shapes which we refer to as RPSSL.

RPSSL shapes are resolved as in Fig. 20.

https://upload.wikimedia.org/wikipedia/commons/a/ad/Pierre_ciseaux_feuille_l%C3%A9zard_spock_aligned.svg

Fig. 20 RPSSL resolution diagram. ️a->b means a wins against b.
CC BY-SA 3.0. By DMacks (talk). Source: Wikimedia Commons
#

Example gameplay:

Expectations:

  • the agent can play randomly

  • shows score after each shape resolution

  • if a player reaches the WinningScore, then this player wins

Important

Applies to all problems: you may override expectations and be creative, as long as your design decisions make sense to you and you can explain it.

Activity 23 (Flowchart)

Draw a flowchart for the problem.

Activity 24 (Needed language syntax)

Break the flowchart down into language components. Which syntax from C# can we use?