Skip to content

Instantly share code, notes, and snippets.

View Tuomoz's full-sized avatar

Tuomo Kärkkäinen Tuomoz

View GitHub Profile
@Tuomoz
Tuomoz / tictactoe_alphabeta.py
Created February 4, 2016 08:46
Tic-tac-toe minimax with alpha-beta pruning
import copy
childs = 0
class TictacNode(object):
def __init__(self, previous_state=None, next_nove=None):
global childs
childs += 1
self.value = None
self.end_state = False