Skip to content

Instantly share code, notes, and snippets.

@eaorak
eaorak / tictactoe.py
Created October 27, 2012 21:18
Python - TicTacToe Game
#!/usr/bin/python3
# Simple TicTacToe game in Python - EAO
import random
import sys
board=[i for i in range(0,9)]
player, computer = '',''
# Corners, Center and Others, respectively
moves=((1,7,3,9),(5,),(2,4,6,8))