Tic Tac Toe is a game everyone knows. I’ve been playing it since I was a little boy. Recently after completing freeCodeCamp’s React challenges and reading through the official React documentation, I coded the Tic Tac Toe game myself. You can try the game here, or see the whole project on my CodeSandbox profile or in my GitHub repository.
Technologies I used
How it works
The principle of the game is simple. There are two players, a player “X” and “O”. Both of them take turns to fill a square on a game’s board. A winner is the first one who gets three squares being able to connect with a straight line.
I learned new concepts while working on this project. I got familiar with JSX Element, Stateless functional and Stateful React Component, defined Props and State, Class method, and React’s Lifecycle method, just to mention some.
I used the read-search-ask method whenever I got stuck. These pages helped me the most while solving tasks: