TicTacToe
An "Engine" for TicTacToe
You can play TicTacToe with the engine running UI.py
with python3. The file engine.py
is designed so you can make your own UI.
Troubleshooting UI issues
- Make sure to run UI.py in a sophisticated terminal. The default windows command prompt cannot print the text markups. So, it will end up looking like this:
- If you want to turn markups off set
markups = False
in the line 3 ofUI.py
. Warning: The output will get really eyestraining.
If you are on Linus/Mac this shouldn't be an issue. On windows, I recommend using the app Windows Terminal available on Microsoft Store. Then the markups will be printed appropriately:
Alternatively, you can run this on VS Code terminal.