Skip to content

Instantly share code, notes, and snippets.

View peter-lang's full-sized avatar

Peter Lang peter-lang

View GitHub Profile
import struct
import tqdm
# states:
# neutral: 0
# player1: 1, 2, 3 (have 2 of each)
# player2: -1, -2, -3 (have 2 of each)
# board: 3x3 => 9 long tuple (board[i][j] = tuple[i*3 + j])
# Rotations