See the "Run the App" Exercise description.
- Visit the Professor's "Tic Tac Toe" repository, which contains a simple command-line game. We'll refer to the Professor's repository as the "upstream repository".
- Click "Fork" to copy the repo under your own control (selecting the "for my own purposes" option, if prompted on GitHub Desktop). We'll refer to your forked copy as the "remote fork", otherwise known as the "origin repository".
- Follow the instructions in the repository's "README.md" file to install, setup and run the Python code contained inside:
- Use your Git client to "clone" (download) the remote fork onto your local machine, perhaps onto the Desktop. We'll refer to this as the "local repository".
- Use the command-line to navigate to the local repository (using one or more
cd
commands). - Use the
conda
utility to create a new virtual environment with the specified version of Python, then activate the virtual environment. - Use the
pip
utility to install any required third-party packages specified in the repo's "requirements.txt" file. - Use the
python
utility to run the Python file(s) as described in the README's "Usage" section.
Once you have played a single game, you will have succeeded.
For fun, try replaying the game against different kinds of opponents (computer, human, etc.).
Optionally simulate many games between computer players, and see the CSV file of game outcomes that gets produced.
Practice passing environment variables to customize the game count and player types.