Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
9

20 Questions code in Python?

csteacher17
csteacher17

Does anyone have a basic 20 Questions code for Python? I'm referring to the game that can guess what you're thinking of in 20 questions or less.

4 years ago

Voters

Comments

TopNew
1
AnthonyFarmer
AnthonyFarmer

I would also like to know this! I'm a newb for sure! I've been trying to learn by myself but can't grasp it fully, I feel not without help at least. I have worked on one project before and believe me, I have plenty of bugs. I would enjoy this and to see how recent this post is, maybe someones been working on it?

4 years ago
1
hayaodeh
hayaodeh

If no one has it maybe you should build it? I'll help out 😎 let me know how. I think it can be a good way to learn in a fun way.

4 years ago
3
21natzil
21natzil

I don't have the code, but maybe this will help you make it. Q20 uses a binary search algorithm, which actually is much simpler then it sounds. This site has an example: http://openbookproject.net/py4fun/animal/animal.html

4 years ago
Load more