/TicTacToePy

TicTacToe made using Python + Kivy. Play against a minimax AI.

Primary LanguagePythonMIT LicenseMIT

TicTacToePy

Version 1.1

Tic-Tac-Toe created using Python 3.7 and Kivy 1.11

Features

  • Single-player and multi-player modes
  • Minimax AI algorithm with Alpha-beta pruning
  • Simple UI
  • Easy-to-understand menu
  • Sound effects

Note

Kivy 1.11 does not support Python 3.8 and up (as of 2019-11-15)

Installation

Windows

  1. Download the latest version of Python
  2. Ensure you have the latest version of pip, wheel and setuptools: python -m pip install --upgrade pip wheel setuptools
  3. Install dependencies: python -m pip install -r window_requirements.txt

Linux

  1. Download the latest version of Python using your package manager: For example:
  • sudo apt install python-3 (Debian/Ubuntu/Linux Mint)
  • sudo pacman -S python-3 (Arch Linux/Manjaro)
  1. Ensure you have the latest version of pip, wheel and setuptools: python-3 -m pip install --upgrade pip wheel setuptools
  2. Install dependencies: python-3 -m pip install -r window_requirements.txt

Use a different OS?

Please read the Kivy installation guide

Running the program:

  • Running from terminal: python main.py OR python-3 main.py
  • Double-click the main.py file (Windows)

Upcoming features

  • Main Menu
  • Settings menu
  • Additional sound effects
  • Online multi-player

Contributing

  • All contributions are welcome, especially those that clean up / optimise code.
  • Before submitting a pull request, lint the changed source files, optimise imports and make sure everything works!

Licenses

  • TicTacToePy is released under the MIT License. Please refer to the LICENSE file for more info.
  • Credit to asset creators can be found in assets/credits.txt

Project Status

After the release of v1.1 versions will be release less frequently as the additional features are not vital for the user experience.