https://github.com/owencochell/tic-tac-toe
A simple Tic-Tac-Toe Game
https://github.com/owencochell/tic-tac-toe
Last synced: about 1 month ago
JSON representation
A simple Tic-Tac-Toe Game
- Host: GitHub
- URL: https://github.com/owencochell/tic-tac-toe
- Owner: OwenCochell
- License: gpl-3.0
- Created: 2018-12-21T01:44:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-18T02:52:11.000Z (over 7 years ago)
- Last Synced: 2025-02-21T14:39:29.667Z (over 1 year ago)
- Language: Python
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tic-Tac-Toe
A simple Tic-Tac-Toe game written in python.
This Tic-Tac-Toe game is "importable freindly", which means that you can easly implement it into your code!
Want to allow a user to play of game of Tic-Tac-Toe while your script works on a time consuming task? Now you can!
# Prerequisites
To run this file, you will need to have python installed. On linux, you can use your package manager to install. Example:
>apt-get install python3
Or on other systems(Non debian based):
>brew install python3
Window users can install it [here](https://www.python.org/downloads/release/python-371/).
# Usage
1. Keep the 'tictac.py' file in the same working directory as your script
2. Import the 'tictac.py' file, like so:
> from tictac import *
3. When you are ready to start a game, call the 'ticStart()' method in your code(no parameters), like so:
> ticStart()
# Other Info
This script has no third-party modules, and it uses the terminal to display information. This means that there is no extra configuration necessary, just download and go!
In this script, the player will be put up against a computer. It uses a incredibly simple algorithm to determine what moves to make next.
You can use threading or multiproccessing to run Tic-Tac-Toe and your process at the same time! PLease refer to the python documentation for more info!
If you have any questions or comments, please feel free to open an issue. I will reply as soon as I can.
Thank you!