Good morning from Athens.
If I understand correctly, and please do tell me if I'm wrong you want a program to do the following:
1) Continuously play heads (H) or tails (T).
2) If three successive tosses of the coin yield heads (H), the program must then check if the 2 next successive tosses are tails (T) and if it does, to show it.
Am I correct?
I have some questions for you.
1) In what programming language would you like that program? I am familiar with C and Matlab.
2) Do you want all coin tosses to be shown to the user? On the screen?
Thank you very much for your time. I trully hope I am able to help you. God bless you.
Respectfully yours,
ilias G. Patelakis