Skip to content

Instantly share code, notes, and snippets.

View Hanslen's full-sized avatar
💭
🏂

Jiahe Chen Hanslen

💭
🏂
View GitHub Profile
@SudhagarS
SudhagarS / tictactoe.py
Created October 23, 2012 22:17
Tic Tac Toe AI implemented in Python using MiniMax algorithm.
def isWin(board):
"""
GIven a board checks if it is in a winning state.
Arguments:
board: a list containing X,O or -.
Return Value:
True if board in winning state. Else False
"""