Howdy, Stranger!

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

Supported by

[open] question about ways to give feedbacks

edited May 2014 in OpenSesame

Hii:)
I would like to give the participant feedback on task on runing score and the feedback would be given in different propotion and in different some of point- give sometime +1 +2 +3 in random order. e.g. to press 1 will give in 80% of the time a score. sometime it will give 2 point and sometime it will give 1 point.
I will be glad if one of you could help me find solution.
with alot of thanks
orit.

Comments

  • edited 1:01PM

    Hi,

    Although I am not quite sure what you mean, I think you want to explore inline scripting and the random module. A code snippet, as an example:

    # import the random module, so we can use it
    import random
    
    # get response (from previous keyboard_response)
    response = self.get("response")
    
    # check if the response was '1'
    if response == '1':
        # generate a random number between 0 and 1
        r = random.random()
        # check if the random number if lower than 0.8
        # (this will happen in 80% of the cases)
        if r < 0.8:
            # award one point
            points = 1
        # if the reward between 0.8 and 0.95
        elif r < 0.95:
            points = 2
        # if the reward was between 0.95 and 1
        else:
            points = 3
    
    # set the points variable, so you can use it in a feedback item
    exp.set("points", points)
    

    Place this script in the Run phase of an inline_script item placed directly after a keyboard_response item. Place a feedback item directly after it, in which you show the text [points].

    I hope this example and the links will set you off in the right direction. You could also try to do some tutorials, to get acquainted with OpenSesame first.

    Good luck!

  • edited 1:01PM

    @oritnaf: it would help if you could you define your question and rules a little more precise ? it is quite hard to get what you want to do.

    As Edwin pointed out you can the use the random class provided by Python and then decide on rules with if / else / elif statements. To help you with that one should know what your rules are and how you want to provide feedback.

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