I coded an online multiplayer tic tac toe game with real time messaging support in 36 hours from scratch. I tried to put together all I’ve learnt from FCC so far into this project and I’ll love and appreciate your review. Please let me know of any bugs you come across.
Thanks in advance
(To test the game, open it up in two different tabs or devices. Create an opponent with one then join with the other)
Great work. Very impressive. I hope to be able to do something like that one day.
Since there wasn’t anyone online to play against I don’t know if this feature exist or not, but how about a notification when a new message comes through? Unless you’re scrolled down to the bottom half you wouldn’t know if someone messaged you or not.
I forgot mentioning, you can probably do this and even more. All you have to do is keep on learning, and practicing, and I believe that’s why we are all here.
I look forward to seeing your even bigger project.
Wish you the best too
You did a great job! I love the UI design and the fact that you even included a chat.
Talking about bugs I noticed that when a user leaves a game the state of the application isn’t completely re initialized so if the user tries to start another game he finds himself stuck on the board of the previous game, if you need help in investigating the bug we can arrange an appointment on Discord.
Another suggestion I want to give you is to try to replace Socket.io with raw WebSockets, Socket.io was almost essential in 2011 when WebSockets support wasn’t uniform amongst platforms but now all the mainstream desktop and mobile browsers supports WebSockets therefore with almost the same effort you spend to use Socket.io you can develop with raw WebSockets with the advantage of having a lighter application (Socket.io is quite heavy to be a JavaScript library) and more freedom in choosing back-end language (if you continue your journey in programming you’re gonna to learn more languages than JavaScript and you might want or need to build a back-end in other languages such as Go, C# or Java which have a very limited or inexistent support for Socket.io but supports WebSockets very well).
Thank you very much for your feedback. Thanks for taking the time to go through the project. An appointment will be great, please let me know the time.
I haven’t used raw WebSockets before so implementing it might be an issue. However, thanks for the advice, I’ll do well to look it up and get more info.
Good for you buddy. It looks respectable. I’ve worked on games in the past here and my participation was not so big as yours. I just advised developers sometimes on what not to do. This is a great game to play with your friends. So much fun.