TicTacTo is a little Project written in Python. It is a TicTacTo game purely in the console. It is just using one external library which is keyboard.
It's not that simple there is a little surprise. You can play against an AI (based on minimax algorithm) or you can just play locally with a friend.
The first two people who can beat the AI without changing the source code can win 10$. Write me on Discord when you got it (mert.14). Good luck!
The Project is build in Python version 3.12. After you downloaded or cloned the Repo, go into TicTacTo (if you download as zip it's TicTacTo - master) directory. It is recommended to create a virtual environment like this:
python -m venv .venv
Then activate the virtual environment.
- On Linux/MacOs:
source .venv/bin/activate
- On Windows:
.venv\Scripts\activate.bat
In the venv now use the package manager pip to install the requirements.
pip install -r requirements.txt
Now change directory to source folder and run:
cd source
python run.py
After playing deactivate the venv like this:
deactivate
- WASD to move the cursor
- Enter to confirm the current field and flip turns.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.