Skip to content

Instantly share code, notes, and snippets.

@tadyen
tadyen / tictactoe.py
Created September 8, 2023 03:06
Tictactoe in python (cli only) with a computer adversary
# Tic-tac-toe game you can play against a computer.
# Cloned from: https://github.com/GA-SEIFXR11-my-coursework/labwork/commit/79961a3a4f111b95cd4ab643b4d9cf4517e6d80b
# This was supposed to be a simple labwork introducing classes in python.
# The task was simply to make a cli-only tictactoe game with manual inputs for both players.
# I implemented a computer adversary as well because I could.
import random
from enum import Enum
class Token_Types(Enum):