User Tools

Site Tools


20_questions

20 Questions Game

This is the classic game you can play in the car on a road trip. It usually starts with One person thinking of something that is either an animal, or a mineral, or a vegetable. The player gets 20 chances to ask a yes or no question. Here is a video of how people play this game and another video that talks about how this this game demonstrates the state of AI in the 1980's

In this lab we will write the code that will ask you to think of a thing, and then it has 20 “Yes or No” questions. If you win (and you accurately answered the questions), you will be asked to invent a good question to distinguish between the computer's guess and your answer. This information will be written in a text file, so next time it plays, it would be able to guess your thing.

20_questions.txt · Last modified: 2025/06/16 14:19 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki