The Court

Computer

0

You

0

net

Words from Your Developer -- Sky Luo

This webpage tennis game is inspired by the Aaronson Oracle and based on forecasting with probability. The only difference is that this game will be two-way–both the computer and user will act and guess.
Rules: You are playing a twenty-point game with the computer. Whoever reaches a score of 20 first will win. You are always serving the point. Start the point by hitting one of the two directions (the two green boxes) to the side of the computer (upper-side). If the computer failed to guess your hitting direction, you win the point. Otherwise, the computer make a random return to you, and you have to return the shot at one of the two positions (the two red boxes)) on your side of the court (lower-side). If you fail to return, the computer gets the point. Otherwise, the point goes on.
How it works: The computer records the hitting positions the user chooses over time and calculate the probability of the user’s next move based on your past two choices.
Cheat Sheet: The computer guess your next move by first inspecting your past two choices, and examine what typically follows the pattern of your past two choices. For instance, if your past two choices are 1 and 2. The computer searches through your record and see if you usually followed the pattern with 1 or 2, based on which the computer makes a prediction. Use inspect to open the console. There are some behind-the-scene information that you can use to defeat the computer (review your past choices and figure out how to deceive the computer)!

headshot