Impossible guess: AI


A few years back, I read an article about a programming club where they played a game. They said that they will guess any number between 1 and 1000 in 10 chances! The rule was that you have to say if the assumption is bigger or smaller than the actual number. Many tried, but even if they cheated, they were caught. One person challenged for 2000 and they asked for 11 chances and they won. The trick was to go for the middle and if it’s bigger or smaller then eliminate the rest and so on.

After learning the trick, I showed it off to friends for few days(Then I slipped the trick). When I learned python, I wrote a program that can do similar work but more precisely. So, this time I wanted to take my old project to a new level. So I made a dialogue-based game with the same mechanism. But things didn’t turn out as simple. So I ended up making an 18 line dictionary each of that had button text, question and a boolean for the visibility of the input box. And I ended up with this.

Files

html.zip Play in browser
Jun 07, 2021

Get Impossible guess: AI

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.