BiblioPixelAnimations.matrix.TicTacToe module

class BiblioPixelAnimations.matrix.TicTacToe.Tic(squares=[])[source]

Bases: object

O_won()[source]
X_won()[source]
alphabeta(node, player, alpha, beta)[source]
available_combos(player)[source]

what combos are available?

available_moves()[source]

what spots are left empty?

clearBoard()[source]
complete()[source]

is the game over?

get_enemy(player)[source]
get_squares(player=None)[source]

squares that belong to a player

make_move(position, player)[source]

place on square on the board

tied()[source]
winner()[source]
winners = ('X-win', 'Draw', 'O-win')
winningCombo(player)[source]
winning_combos = ([0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6])
class BiblioPixelAnimations.matrix.TicTacToe.TicTacToe(layout, **kwds)[source]

Bases: bibliopixel.animation.matrix.Matrix

determine(board, player)[source]
drawMove(index, player)[source]
pre_run()[source]
step(amt=1)[source]