Tic Tac Toe
[-]++++++++++ p0 = 10
[>++++++++>++++++++++>+++++++++++>+++<<<<-] p1 = 80 p2 = 100 p3 = 110 p4 = 30
>++++.>+++++.------.>>++.<<<.>--.++.>>.<<<.>>+.<++++. print Tic Tac Toe
>>[-]<[-]<[-]<[-] reset all of the pointers to 0 so we can use them later
p0 - input p1 = turn
>>+ move to p2 and set it to 1(end game = false)
>+<<< set p3 to 1(played turn = false)
p4 and p5 are temp pointers
player 1 always goes first so,
[ while the game is not over
, grab some input
[ while the turn has not been used
[ while the player is p2
[>>>>+>+<<<<-]>>>>>[<<<<<+>>>>>-] move p0 into p4 and p5 and p5 back into p0
< move to p4
[add code here] move to the specified space and place a 2
code as one:
[-]++++++++++[>++++++++>++++++++++>+++++++++++>+++<<<<-]>++++.>+++++.------.>>++.<<<.>
--.++.>>.<<<.>>+.<++++.>>[-]<[-]<[-]<[-]>>+>+<<<[,[[[>>>>+>+<<<<-]>>>>>[<<<<<+>>>>>-]<[]