Sunday, March 16, 2014


Continuing work on the tic-tac-toe game in Joykadia... I've gotten the root script to recognize all of the win conditions. That dense block of code is the final version of the check_win() function. I discovered that the logic test operators can only take two arguments, so I had to break up each test into two separate ones, since each win condition involves verifying that three positions contain the same piece. Remaining tasks: 1) Figure out how to delete the pieces when the game ends, 2) Reintegrate the turn-taking logic, and 3) Assemble the whole thing into an attractive, playable object.

No comments:

Post a Comment