Wednesday, March 28, 2012

Blog Post 03/11/12

i liked making the short version of tic tac toe, and i think i could have modified it to make a much easier version of tic tac toe than the long version that would have worked just as well. so first to make the user be able to choose where he goes you'd as him if he wants the put his peice in the top right, top middle, top left, etc. and then put an peice coresponding to which play that is(X or O) in the matrix, then have a draw function that outputs the board in it's current state by going through the matrix and seeing where there are pieces and then have something to check and see if anyone has won like was in the short lab and if someone has, display that on the board too. it's really pretty simple and could all be done in just two classes. 

No comments:

Post a Comment