Skip to content

Instantly share code, notes, and snippets.

View ifeLawal's full-sized avatar
🐢
Slow and steady

Ife Lawal ifeLawal

🐢
Slow and steady
View GitHub Profile
@ifeLawal
ifeLawal / ifeLawalRecurseTicTacToePython.py
Last active July 9, 2020 02:52
A simple tic tac toe game for 2. Easily run it in your terminal and begin!
import random, numpy as np, sys
trueFalseArr = [True, False] # used for randomly choosing who goes first
# Return tuple of (winner or '' string if no winner, bool value for if game is tied)
def checkGameState(board):
gameIsNotTied = True
winner = ''
# check horizontal wins