Skip to content

A simple game of Tic-Tac-Toe written in Python

Notifications You must be signed in to change notification settings

Zizo001/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

TicTacToe

Table of Contents

Overview

A simple game of Tic-Tac-Toe with a text-based GUI in Python. The project can serve as a fun game and as an example of the usefulness of dictionaries in python. The objective of the game is to match 3 boxes in a row. This can be done horizontally, vertically, or diagonally. It is meant to be played with 2 players.

Getting Started

The only prerequisite to run this is to have python installed. We can check if python is installed using either of the following commands:

python --version
python3 --version

If python is not installed, then this can easily be done using the installer found on https://www.python.org/downloads/

You can also install it via the command line on Windows/Mac OS/Linux using the following command:

$ sudo apt-get update
$ sudo apt-get install python3.9

To run the game, navigate to the file's directory and run the following command:

python TicTacToe.py

Demo

1

About

A simple game of Tic-Tac-Toe written in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages