/twenty_questions

A fun way to teach python

Primary LanguagePythonMIT LicenseMIT

Twenty Questions

A fun project to teach programming in python.

Quick start

Install PyCharm or equivalent

Install PyCharm or a similar editor. A vanilla text editor is fine too.

Install Python and pipenv

See the pipenv documentation for the steps to install python 3, pip and pipenv.

On a Mac, you will need to install python 3 as described above (python 2 is the default). The simplest way to install pipenv is to install homebrew, and then type brew install pipenv.

On linux, this link may be helpful.

Install the Required Packages

Enter the twenty-questions directory, and type:

pipenv install --dev

This creates an environment containing the required packages, which you enter by typing:

pipenv shell

Run the tests

In the pipenv environment, make sure this command runs without error:

bin/check_code