I ask the user a question and he is allowed to answer it 3 times tops.
He gives the answer and I compare it to the right one. If it's wrong
the user may have another try. But after three tries he will be given
the right answer and he won't be able to try again.
The user will score depending on how many hints he has used and how
many times he has tried to answer the question.
So my question here is that what is the best way to count the
tries the user has done and execute the script if he has tried less than
3 times?
Did this make any sense?
I hope you understood.
Anna Loimulahti