Player X goes first and must click on one of the buttons.
Player O will go second.
If Player loses they get to go first in the next round.
If it is a Draw Player X gets to go first in the next round.
The rounds are unlimited.
If you want to start a new game with both Players at 0 wins press start new game Warning all data will be cleared!
-HTML
-CSS
-JavaScript
-jQuery
-Sublime
-BitBalloon
-Github
-Web Browser
-Chrome Developer Tools
-Terminal
-Git
-Computer
-The Internet
I first started with wireframes to get a general idea of what I wanted the interface to look like and what buttons and inputs shouild do.
Second part was attempting to replicate the wireframe with HTML and CSS. Could not quite get it to look the way I wanted, but had all the needed HTML elements to start working with jQuery.
Third part was working with jQuery and used a fair share of if/else statements. Started with .click on all of the button elements to have them change to x or o. After that I set each buttons text to a variable and used the variables in a long list of if/else statements in order to pick a winner. Then I created variables to hold player scores, which I impemented into the if/else statements. After getting user score counts I finished off with a scoreboard that would use the playerscore variables. Then I found a way to create a function that would reload the page and created a button that would execute the function and restart the game.
DRY DRY DRY. I wanted to use arrays and for loops to cut down on the if/else statements.