Friday, May 16, 2014

Tic Tac Toe

I finally managed to get the tie working and the problem was that the tie would be determined too early so I added a counter. Essentially it just counts the turns now but it finally works! The only problem remaining is that when there are 3 x's or o's in a row anywhere in the array it will say there is a winner but I think I can fix it if I rewrite checkForWinner function a bit.

Tic Tac Toe Functions

No comments:

Post a Comment