MY PROCESS

TASK

Create and implement a JavaScript project that allows a user with project to play against the computer. This project is programmed so that the user that’s playing is “X” and the computer is “O”.

HTML/CSS

To start creating the Tic-Tac-Toe, I must start an HTML file to structure the webpage and its content. This will allow me to structure the webpage in any way I desire. I then have to style the webpage, which is where CSS comes in. After completing these to files and am satisfied with the result, I then continue the next step, which is to prepare to create my JavaScript file.

JAVASCRIPT

After completing the HTML and CSS file, I then create the JavaScript file, which is the important file as it gives commands, and features to my webpage. This allows the users and the computer to place the “X” and “O”. In the JavaScript file, I created functions that command the webpage to display the winner and a “New Game” button that restarts the game.

FINAL PROJECT

After completing the HTML, CSS, and JavaScript files, The final project is displayed above. This is a fully functional online Tic-Tac-Toe webpage that allows the user to enhance their skills in the game. This webpage is structured so that there are no errors that will occur during a game.