Tic Tac Toe
Button Functions
Multiply corresponding red and blue by 2
Turn Functions
on
set red 1 and blue 0
off
set red 0 and blue 1
Red Functions
max 2
set corresponding green 1
Blue Functions
max 2
set corresponding green -1
Green functions
max 1
color corresponding button red and deactivate
add to connected win counters
0.1s reset green
0.1s toggle turn
0.1s add to win 0
min -1
color corresponding button blue and deactivate
subtract to connected win counters
0.1s reset green
0.1s toggle turn
0.1s add to win 0
Greens connections to White Win counters
[1 4 7][2 7][3 7 8]
[1 6][2 4 6 8][3 6]
[1 5 8][2 5][3 4 5]
White 0 functions
max 9
fire tie relay
White 1-8 functions
max 3
fire red win relay
reset win 0
min -3
fire blue win relay
reset win 0
blue win, red win, and tie relay functions
fires button lock relay
reset functions
set buttons to white and activate
set toggle to on
set red to 1 and blue to 0
reset white win counters to 0
Timer functions
start on spawn
on complete fire full reset
EDIT
new compact version