Since I got so into the appearance and theme of the game—check out the background blur incrementing with each play! Get it?—I got carried away with the front-end code and neglected to have the game actually end. That is, it was possible to play back and forth, but the game would not stop to acknowledge a winner or declare a draw. Oh well, I figured the point was to practice JS & jQuery, and I felt I’d done that, at least from a “front end” perspective.
It nagged at me that the game never ended. I hadn’t been able to work out a winning strategy, and when I looked over solutions developed by my classmates, I couldn’t apply their approaches, due to the way I had engineered the game from the front end in. Finally, months later, I finally took the time to go back and work out a strategy to sort out completion of the game, so that it was fully and satisfyingly playable.
Tools & Tech
- Font Awesome
- Google Fonts
- There are many ways to solve a problem, and there is a difference in the way that back-end thinkers and front-end thinkers approach a problem. It[s worth figuring out what your goals are and what your approach will be to know how you are going to solve something.