Pathways to CyberInfrastructure

   

TFS


Shodor > CyberPathways > Workshops 2007 > TFS



Monday, Feb 26

Today, students fixed the "mark" function in their tic-tac-toe games. This function marked the piece that was clicked on with an X or O, depending on the current player, and then alternated the current player.

The students fixed the function so that it checked to make sure it was not writing over a mark that was already made by the other player. They also finished the rollover functions so that the rollovers did not overwrite actual marks. The only thing remaining to be done now is checking after each play to see if there is a winner.


Not Logged In. Login
©1994-2024 Shodor