Objective:
This was not only one of our first attempts in making a game using JavaScript, but also my first multi-player game.
Problem:
What makes multi-player games more complex is coding the game to detect who won the game and to declare it somehow.
Solution:
First, I made a function that would alternate between marking a selected box as Player X’s or Player O’s. Then I made a function that would detect whether a certain pattern of buttons were selected to determine if someone won.