Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tillyt on github.
  • I am sillytillyt (https://keybase.io/sillytillyt) on keybase.
  • I have a public key ASAk_wgtbFT3mwVCG_m1JY6YR5h-RZr5_HifJcSM5TSZyQo

To claim this, I am signing this object:

@tillyt
tillyt / tictactoe.py
Created March 6, 2019 04:12
dead simple CLI tic tac toe game written in python 3
class TicTacToeGame:
def __init__(self, player1=None, player2=None):
# initialize an empty board
# standard boards have dimension 3: 3 columns and 3 rows
self.dimension = 3
self._board = [None for n in range(self.dimension**2)]
self.empty = "⬜"
self.player1 = player1 or "❌"
self.player2 = player2 or "⭕"

Keybase proof

I hereby claim:

  • I am tillyt on github.
  • I am tillyt (https://keybase.io/tillyt) on keybase.
  • I have a public key ASD7mqWnKklr-GTk08etX71Z18wmuPjzcBhMg7dCYd99Vgo

To claim this, I am signing this object: