Rock Paper Scissors card game assistance needed

Feb 21, 2014

Hello everyone!

I'm just getting started and wanted to see if a simple card game could be done using Articulate. Based on my understanding, I think that this can be done, but I'm not 100% sure it would work like I want it to.

I would like to have the user select a card, (Rock, Paper, or Scissors),  and have the program auto generate one of the same three choices to compare.

If the results are the same, it resets.

However, If you win using the idea that Paper beats Rock; Scissors beats Paper, and Rock beats Scissors; you score a point.

And if you lose using the same mechanics above, then you lose a point.

I have an understanding of how to make my layout and animations, and can add variables to differentiate between my cards images of Rock, Paper, and Scissors.  But how would I go about comparing the choice picked by the user, with a randomly selected choice the be program?

Basically I need to know how do I get the program to select one of the three choices?

On a side note I would like to show a generic card design on one side similar to the back of any playing card, and reveal an image of a Rock, Paper, or Scissors on the other - Is it possible to do this so I can "flip the card"?

Any help or suggestion would be greatly appreciated

18 Replies
Ashley Terwilliger-Pollard

Hi M and welcome to Heroes!

I haven't seen a Rock/Paper/Scissors game, although I think it would be very cool! There are some other threads that you may want to review which could help get you started:

Memory card game

Concentration/Memory game Template

Storyline game templates

Hope that helps get you started, and if you're able to share what you've set up once completed we'd love to see it! 

Till Then

I had a go at creating a PRS game for you.

Now this is just my first attempt here. It's not looking grand but it works Well take a look and tell me what you think. 

But the logic should be solid. It just uses a simple random question pool. This is how you can I get the program to select one of the three choices.

I then used a variables and layers to show the PRS selection.

I think the "Restart" does not work as Storyline is only creating the question pool the first time you open the course. 

Also I have included the function of points. Without the reset working I am not sure how the points work if computer does not change it's answer.

Storyline has Animations features that can make it look like a card fliping. 

This is all a work in progress! Let me know if its close to what your after and I would be happy to offer any more help!

Till Then

Thanks for that Aleandros, I like the trick of using the question bank as its very visible.

Your right. Using JavaScript is better way of achieving the random pick for Rock, Paper Scissors. 

How's this JS ?

   var randomnumber=Math.floor((Math.random()*3)+1)

   var player = GetPlayer();

   player.SetVar("RandomNumberforRPSPick",randomnumber);

I have put it on a slide so it's visible but it could just be added to the 'GO' button. This has been used in the attached updated Story.

I have little more logic to reset your (Ron's) choice and to ensure you make a selection!

Still thinking about your flip card M Wicket. Might be best to create it PowerPoint and export as MP4. The you can use that in your Storyline course.

M. Wicket

Thank you all! I appreciate the time and effort you have put in to helping me see if Storyline is a viable platform for this. I noticed that when I go to save the .story files you all have posted, that when I try to contribute or make changes, I cannot save or publish to test and see how it looks in the articulate player, and I don't think that JS works in preview. This may be because I am using the trial. Can anyone confirm if the Trial version disables saves and publishing?

Trav - I like where you are heading with the idea there! Maybe I can reach out to you about some other questions?

Ashley Terwilliger-Pollard

Hi M,

The trial version is a full version, so you shouldn't be experiencing issues with saving or publishing. You'll want to make sure that when you download the files here you download, save and publish to a local drive as described here. 

If you can't save or publish, I'd suggest conducting a repair of Storyline to resolve any issues with the installation. 

M. Wicket

Thanks for that Ashley! I was trying to save locally on my C drive, but I'll take a look at your link to see if anything else stands out. I originally assumed it was giving me the error because I was using the trial version - it's good to know that's not the case. Out of curiosity, do you know if Articulate extends the trial time frame for individuals with technical issues while evaluating the program?

The error reads as follows (Please see attached):

The project could not be saved.

Method not found: 'Boolean

System.Threading.WaitHandle.WaitOne(System.TimeSpan)'.

I'll also try to uninstall / reinstall and see if that helps too.

Thanks Alexandros - If I can get my trial to publish or save, I'll check out the JS in action there...

Trav - Much appreciated! Once I get things working right here, I be in touch. Thanks again for all of your help!

Ashley Terwilliger-Pollard

Hi M,

You'll need to connect with our Support team about extending your trial, and you'll want to reference this thread. 

Thanks for sharing the error message, and I'm not sure that a simple uninstall/reinstall may solve this one, and you'd need to try the steps outlined here for a deeper troubleshooting method. 

It may also help to check the Storyline System Requirements - make sure that you have a supported version of Windows and that your user profile on the machine has Administrative privileges. 

It may also help to right-click the Storyline shortcut and select "Run as administrator" when launching. Then, try saving a project file to see if you receive the same error. 

M. Wicket

Hello all!

Ashley, I did try to repair my installation of Storyline as previously suggested, but I did notice that there is not a repair option when I attempt this (see attached).

I also went through the Unexpected or Erratic Behavior in Articulate Storyline thread last night and reinstalled Storyline as an administrator with the same results. I also verified the system requirements for my OS (Windows Vista)  and I'm okay there too. See below:

My .NET looks like its fine for Articulate too, so I'm kinda stumped at this point. I'll check some more threads and let you know if I find anything else.

M. Wicket

I think I may have figured it out. It appears that you need to be using SP2 if you run Vista. I was only running SP1. After updating my OS to Vista SP2, I gained the ability to  save and publish successfully. Is it possible to recommend this be added to the system requirements page, as it's not specified for the Vista OS?

Anyways, thank you all - much appreciated!

Ashley Terwilliger-Pollard

Hi M,

I'm glad to hear that you were able to figure out a way to get it to work. I haven't heard of that as an issue with Storyline, but I did see Jayem replied to you case asking for a screencast of the behavior to help him see what was happening. If we're able to confirm that it's connected to the Service pack, then we'd be able to include it in our requirements. 

This discussion is closed. You can start a new discussion or contact Articulate Support.