Skip to content

Instantly share code, notes, and snippets.

@vivek1339
vivek1339 / tictactoe.py
Last active July 13, 2020 05:04 — forked from horstjens/tictactoe.py
tictactoe in python for 2 players
"""tictactoe game for 2 players
from blogpost: http://thebillington.co.uk/blog/posts/writing-a-tic-tac-toe-game-in-python by BILLY REBECCHI,
slightly improved by Horst JENS"""
from __future__ import print_function
import sys
choices = []
for x in range (0, 9) :
choices.append(str(x + 1))