logo

Word Busters

Built with : Python, Flask, Node JS, React JS

github

Visit Repository

word-busters

Challenges

The initial idea came from running a python script using node js. As, i was seeing a course in youtube , that was just making an word guessing game using python only. I liked the idea and wanted to take it to a great extent. So, that users can have an GUI to play on, not just typing on terminal. Because that seems boring 😣. And I was also learning python and flask at that time. So, i wanted to get a node js server and a flask server interact with each other through some sort of operation. And this was the challenge to take on.

Solution

So, at first i refactored the python project to a flask server. So, that after hitting certain api endpoint the game gets started. The request at first go through a node js to flask server. Then the data comes back from flask to node js server and then to the client or react app. The user has to guess the secret word as soon as the game start. In each request the user send only one character and submit. If the character exists in the word, the secret word gets filled at that index. But if he guessed wrong than he loose one life. For total he gets five life. Once the game is finished succesfully, we congratulate the user with a happy & celebrating animation.

Tech Solution Used

As for the actual game logic , i used python , that takes a random secret word from the given list. And checks user input and validate it throughout the game. Node JS that workes as a bridge in this game to exchange data between react app and flask server

Conclusion

It was quite a fun project. Just to do something unique and fun i built this app. And as i like it , I added it in here and shared the code with others so that others can also get benifited and ideas.