Skip to content

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.

License

Notifications You must be signed in to change notification settings

mert-eryl14/TicTacTo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacTo

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.

Reward

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!

Installation

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

Controls

  1. WASD to move the cursor
  2. Enter to confirm the current field and flip turns.

Preview

image


image


image

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages