Preparation (optional)
Get sample code from GITHUB here
Open Pycharm (or another editor) and create a project from the GITHUB link
Tip: close all projects first
![](https://tagger.biz/wp-content/uploads/2021/07/image-1-1024x240.png)
There are 2 files for the mastermind project: MASTR002.PY and test\MASTR002.py
The one in test\ is used for unit tests
Install the emulator software, see howto here
Deploying a .py file on the TI-emulator
Start the TI-Smartview emulator
![](https://tagger.biz/wp-content/uploads/2021/07/image-2-1024x742.png)
Get the contents
![](https://tagger.biz/wp-content/uploads/2021/07/image-3-1024x755.png)
Now you can copy the file MASTR002.PY to the emulator with drag and drop:
![](https://tagger.biz/wp-content/uploads/2021/07/image-4-1024x488.png)
You’ll get the following dialog box:
![](https://tagger.biz/wp-content/uploads/2021/07/image-5-1024x452.png)
Now the MASTR002.PY is listed and ready to run
![](https://tagger.biz/wp-content/uploads/2021/07/image-6-1024x915.png)
Now you can run MASTR002 on the TI-emulator
![](https://tagger.biz/wp-content/uploads/2021/07/image-7-1024x793.png)
![](https://tagger.biz/wp-content/uploads/2021/07/image-8-1024x785.png)
![](https://tagger.biz/wp-content/uploads/2021/07/image-9-1024x1021.png)
To run the program, click on Y=
![](https://tagger.biz/wp-content/uploads/2021/07/image-11-1024x825.png)
Now you can play the game as long as you want!
After ending the game you can click 2nd quit
![](https://tagger.biz/wp-content/uploads/2021/07/image-12-1024x804.png)
![](https://tagger.biz/wp-content/uploads/2021/07/image-14-1024x764.png)