This program is called ESP Simulator for reasons that will become obvious if a comparative score is kept.
At first glance, it looks and feels like the old classic HI/LO game on the surface. However, despite the resemblance to the simple HI/LO game, it is NOT the same game. The difference is in the internal strategy involved in handling the guesses. If you have ever played the old classic Hi/Lo and apply the old optimal interval-halving strategy to improve your odds of winning, you will most likely achieve the opposite effect.
This is a proof of concept program that requires 3 games to demonstrate the basic strategy in action. More games can be played if desired, but at least 3 should be played.
Three simple comparative games are usually sufficient to prove the point. The best 2 out of 3 wins. It's that simple. If more games are desired, then any number of games may be played.
This deceptively seemingly simple program introduces a whole new concept in competitive number guessing strategy that will prove remarkably superior to any human strategy applied to the same simple purpose.
The problem is, the player (you) will lose most of the time, regardless of who started the game and regardless any adopted strategy, except cheating.
The secret numbers used are random numbers.
The machine cannot possibly know the strategy applied by the player, if any.
So, how can it be guaranteed that the player will lose most of the games in the long run?
That's the secret strategy being proven.
Do NOT bet against the computer or you will quickly LOSE your shirt, regardless of your long-term strategy and as long as you do not cheat!
I does not matter who begins a game.
The only rule that the human player is requested to follow is to be truthful.
When the computer guesses your number, please respond honestly by clicking the
corresponding [Too Low], [Too High] or [CORRECT] button accordingly.
The computer cannot cheat by actually seeing or hearing the secret number you announce to onlookers.
When you guess the computer's secret number, it will also respond with similar answers to guide you until you finally zero-in on its secret number in similar fashion.
The simple idea is to compare human guessing strategy against machine guessing strategy. It only takes a few simple test matches vs the program to see the basic concept in action.
It is recommended to play with a high limit of 50 (default value), but it can be increased to 4 digits.
No input error checking is done in this experimental version. The program innocently assumes all input is valid and that it is being told the truth.
© Jay Tanner - PHP Science Labs - 2017