Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
TIC TAC TOE ----------- See tictactoe.js, index.html, and main.css. Most of the interesting stuff is in tictactoe.js. I filled in the functions that you guys gave me, using nested for loops to initialize the board with nulls and check for runs of 3 consecutive Xs and Os. Then I made a basic HTML document and added a method to the Board object for initializing an HTML table with click handlers that modified the game state, and another method that would check to see if the game was over and if it was, display an alert. SCHEMA ------ See gift_registry/gift_registry/schema1.py and gift_registry/gift_registry/schema2.py. The second schema makes 3 changes: each user gets an additional integer field tracking their total money contributed, each gift gets a field tracking the total amount that's been contributed to it, and each gift gets an additional boolean field tracking whether it's been fulfilled or not. These complicate the application logic a bit. Every time someone makes a contribution, that contribution amount will be added to their total money contributed and the gift's total money contributed. Additionally, the application will have to check whether a gift's total contribution amount has been reached, in order to make sure its fulfilled boolean is set correctly.