Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Keyboard response and right feedback on the screen

Hey there!

I need some help with coding!
I am programming a task (the Rock-Paper-Scissors game) and I cannot find the right inline code to run the task correctly.
If I press 1, I want the image of Rock to appear on the screen; If I press 2, I want the Paper to show up; and finally, if I press 3, I need Scissors to appear on the monitor. I tried several codes and none of them work.
The participant will be playing against the computer.
So, basically, it will depend on the participant's choice, since the computer's response is randomized.
Furthermore, I need a code to them show the result on the screen (i.e., whether it is a Win, a Draw or a Loss). Again, it will depend on the first choice made combined with what the computer has chosen.
I am using E-prime (version 2.0).
Thank you in advance! I truly hope there is an easy solution.

P.S.:
There is 9 condition possible:

Rock (press 1 by participant) and Rock (by computer) = Draw
Rock (press 1 by participant) and Paper (by computer) = Lose
Rock (press 1 by participant) and Scissors (by computer) = Win

Paper (press 2 by participant) and Rock (by computer) = Win
Paper (press 2 by participant) and Paper (by computer) = Draw
Paper (press 2 by participant) and Scissors (by computer) = Lose

Scissors (press 3 by participant) and Rock (by computer) = Lose
Scissors (press 3 by participant) and Paper (by computer) = Win
Scissors (press 3 by participant) and Scissors (by computer) = Draw

Joana

Comments

  • Dear Joana,

    This is the OpenSesame forum:
    if you are using E-prime, this might not be correct forum.

    If you are using OpenSesame, could you specify your problem? Which part of your experiment does not work?

    Greetz
    Stephan
    PS: Nice task by the way ;)

  • Dear Stephan,

    Thank you so much for your feedback. I am aware this is not the correct forum...but I am desperate to find a solution! ;)
    I know that the codes I am suppose to use are VB and I was hoping someone could help me with that (since I am not acquainted in the field of programming).
    The task runs perfectly, however, it does it on its own (which I don't want to, i.e., I want the participants to press the key they want - 1, 2 or 3 - and then make the software trigger the right response*).

    • the right response is divided in two steps:
      1) After pressing the key they want, a picture showing their choice combined with the computer appears on the screen (so I need to match the pressed key with the right image);
      2) Finally, the result saying whether it is a Win, Draw or Lose will appear as a consequence of the first step.

    Joana
    P.S.: Thanks!

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games