Donate $1 now to see this question answered quickly
Sponsored questions offer a monetary incentive to answerers to produce quality responses.
Be intelligently matched with 5 likely answerers who will be alerted to help.
I've been trying for a while and can't figure it outhttp://pastebin.com/4PZj2c9s
I'm having trouble figuring out how to check if all squares are full, could I get some more help with that?
It should be something like so, in psuedo code:
bool isFull = true;
for i = 0 to board.length # 0 <= i <= 8
if board[i] != 'x' && board[i] != 'o'
isFull = false;
i am getting an invalid syntax error for that first line
sorry i havent learned bool yet :/
i also cant find anything about 'bool' after googling it
ok so i kind of understand bool now but still have no idea whats wrong
updated code: (line 36)http://pastebin.com/9na85n80
back to square one, any other help would be very appreciated, all i need now is how to check if the board is full
return all(p in tuple('xo') for p in board)
return not ''.join(str(p) for p in board).strip('xo')