Spiel
Versuche
Noch möglich
Mindestens
Spiel
5
Statistik
Aussehen

Mehr über die binäre Suche

Guess My Number

The classic number game for two. One side thinks of a number, the other guesses, and every guess is answered with higher or lower. Guess the computer's number from 1 to 10, 100, 1000 or a million, or think of a number yourself and watch the computer find it. Two number lines show every guess and the numbers still possible, and the trick behind the game is the one computers use to search: always guess the middle, and you halve what is left. Eine Seite denkt sich eine Zahl aus, die andere rät, und jeder Tipp wird mit höher oder niedriger beantwortet. Errate die Zahl des Computers mit möglichst wenigen Versuchen, oder denk dir selbst eine aus und lass den Computer sie finden.

Wie es funktioniert

  1. Choose who guesses. You guess: type a number and press Enter, or click it on a line, and the computer answers higher or lower.
  2. The computer guesses: think of a number and answer each guess with Higher, Lower or That's it!, or the up and down arrows.
  3. Watch the numbers still possible shrink on the two lines. Hint shows the middle, the guess that halves them.

How to play

One player thinks of a whole number, from 1 to 100 for example, and the other tries to find it. After each guess the first player says higher (the number is higher than the guess), lower, or that's it. Numbers sets the range: 1 to 10, 100, 1000 or a million. Who guesses chooses between you guessing, the computer guessing your number, and the computer playing both sides.

The best way to guess

Guess the middle of the numbers that are still possible. Whatever the answer, half of them are ruled out, so 100 numbers take at most 7 guesses, 1000 at most 10 and a million at most 20. The panel shows the fewest guesses that are sure to be enough. Guess anywhere else and an unlucky answer leaves you with the larger part.

Binary search

Halving is how computers search a sorted list: look at the middle item, and keep the half where the target must be. It is called binary search, and it finds one name among a billion in about 30 steps. Choose The computer guesses or Computer vs Computer and compare its ways: halving, guessing at random among the numbers left, or one by one from the lowest, which takes as many guesses as the number itself.

The two lines

The upper line holds every number from 1 to the top of the range; the stretch that is still possible is lit up, and every guess is marked: orange when the number was higher, blue when it was lower. The lower line magnifies that stretch, so you can see it even when only a few numbers of a million are left, and once 30 or fewer are left it shows each of them.

Häufig gestellte Fragen

What is the best strategy for guess the number?

Always guess the middle of the numbers still possible. Each answer then rules out half of them, so 1 to 100 takes at most 7 guesses and 1 to 1000 at most 10. That is binary search.

How many guesses does 1 to 1000 take?

At most 10 with halving, because 2 to the power of 10 is 1024, more than 1000. A million takes at most 20, because 2 to the power of 20 is just over a million.

Can the computer find my number?

Yes. Choose The computer guesses, think of a number and answer higher, lower or that's it. If your answers contradict each other, it notices that no number fits.

What do the computer's ways mean?

Halving guesses the middle, binary search. At random guesses any number still possible, which takes a few more guesses on average. One by one starts at the lowest number and counts up, which can take as many guesses as there are numbers.

Guess My Number: Wie nehme ich ein Video auf?

Drücke den roten Aufnahmeknopf in der Wiedergabeleiste: Er filmt, was die Bühne zeigt. Drücke ihn erneut, um zu stoppen, und das Video wird auf deinem Gerät gespeichert. Die Aufnahme ist kostenlos, du musst dich nur anmelden. Ohne Abonnement trägt das Video ein kleines PictorX-Logo in einer Ecke. Der Knopf neben der Aufnahme öffnet die Videooptionen: die Form (wie angezeigt, quadratisch, Story 9:16 oder breit 16:9), die Länge (bis du stoppst, oder 5, 10, 15 bzw. 30 Sekunden für soziale Medien) und die Datei: MP4, WebM oder ein animiertes GIF. Als Ton wählst du die eigenen Klänge der App oder einen von drei Musiktiteln: ruhig, fröhlich oder Beat.

Bereit, es auszuprobieren?

Öffnen Sie PictorX in Ihrem Browser – keine Installation, zum Starten ist keine Kreditkarte erforderlich.

Zum Editor