swag
Dependencies: Motor Servo mbed_tictactoe
Diff: main.cpp
- Revision:
- 2:cbc3ef689c91
- Parent:
- 1:c9f7302eac4f
- Child:
- 3:317e06586628
diff -r c9f7302eac4f -r cbc3ef689c91 main.cpp --- a/main.cpp Tue Oct 20 04:45:47 2015 +0000 +++ b/main.cpp Tue Oct 20 04:48:15 2015 +0000 @@ -319,6 +319,7 @@ } } } + //The ai's second turn if the user goes first if(turn()==2) { if(xprev==1 && yprev==1) { //If user places in middle, any open spot leads to tie do {