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
Comments
Hi @SER,
Can you be more specific? What do you mean by "ask a participant something"? A simple key press? text input?
Cheers,
Fabrice.
Hi @Fab,
the request is a simple mathematical question; the participant must answer a mathematical operation that is presented to him.
So Basically the response is a number (or more than one) and the participant must press 'return' to submit the answer.
Cheers,
Sara
Hi @SER,
Thanks for the information. You haven't specified how you collect the response. From your description, it sounds as if you might be using a form_text_input object as opposed to collecting and appending multiple key strokes. If you're using the form_text_input object, you won't be able to display anything else on the screen at the same time.
The solution to your problem has to be achieved through coding (in Python in this case). Are you familair with Python? If not, I recommend you take the time to train yourself a little so that you can understand the following code (my knowledge of Python is basic but it's not too complicated to learn and there is a lot of information out there on the internet):
Below is a step-by-step description of the logic and flow of the code. Hopefully it will make sense to you. From this, you should be able to modify the code if needed (for example to change the position or size of the text being displayed).
canvas
andkeyboard
modules from theopenexp
library. These modules are used to display text on the screen and to capture keyboard input, respectively.self.clock.time()
.canvas
object nameddisp
is created to display the math problem and the countdown timer.keyboard
object namedkb
is created to capture the participant's keyboard input.update_display
is defined to update the display with the math problem, remaining time, and the participant's current input (response_str
).update_display
with an empty response string.response_str
) is converted to a number if possible. If the conversion fails, the response is kept as a string.var.correct_response
).correct
variable is set to 1 if the response is correct and 0 if it is incorrect, but only if the participant did not timeout.response_time
variable is set to the time it took for the participant to respond or "N/A" if there was a timeout.canvas
object namedfeedback_canvas
is created to display the feedback message.Here is the task:
Hope this helps.
Best,
Fabrice.
Hi @Fab,
Thank you so much for the code.
I know that in python it is very easy to get the answer but I can’t do the same in Java (with OSweb).
I can’t set the keyboard in the code and this behavior causes me some problems to display both the countdown and the subject’s response at the same time.
Cheers
Sara
Hi @SER,
The code I sent you is Javascript and the example I sent you works in OSWeb.
I'm not sure whether your task is now working. If not, let me know what the issue is exactly, or better still, upload a stripped down version of your task.
Best,
Fabrice.
Hi @Fab,
sorry but I cannot run your code on OSweb.
It seems to me that the code you send is written in Python...
Cheers
Sara