User Tools

Site Tools


20_questions

This is an old revision of the document!


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 this game as a 1980's version of AI

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.1750097876.txt.gz · Last modified: 2025/06/16 14:17 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki