Skip to content

Instantly share code, notes, and snippets.

View looiyk's full-sized avatar
🎯
achieving greatness

Yikern looi looiyk

🎯
achieving greatness
View GitHub Profile
@horstjens
horstjens / tictactoe.py
Created December 15, 2015 06:39
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
choices = []
for x in range (0, 9) :
choices.append(str(x + 1))