🌟Inspiration
The inspiration behind Lexicon Legends was to create a fun and engaging word-based game that utilizes NLP technology to create a PvP experience in a simple word game. We wanted to create a game that allows players to think creatively, while also tickling their competitive nature with the 1v1 aspect, making the experience more enjoyable overall.
🚀What it does
Lexicon Legends is a 1v1 PvP word-based game powered by NLP. Players can create their accounts and create games. This prompts them to enter a game code. Once entered, their game room is created, and other players can join their room using the game code if shared. Once there are 2 players in a game room, the room is closed off to more players, and a random word appears on both players' screens. A textbox input is enabled, and the players have to write as many words related to the random displayed word as they can think of. Once one player has written a word, the other player cannot write that word. All written words appear as soon as they are written in real-time on both players' screens. After 30 seconds, the input is disabled, and an NLP model checks the similarity of the entered words with the random word. Based on this, the players are assigned scores, and one player ends up being victorious.
👨💻 How we built it
We built Lexicon Legends using Flask and Flask Socket.io for the real-time aspect of the game. Additionally, we used the sentence-transformers library to get a pre-trained NLP model for the similarity check.
🔨Challenges we ran into
One of the major challenges we faced was allowing players to successfully join created lobbies and smoothly progress onwards with the game. Since both of us didn’t have any experience with Flask socket.io, it was difficult for us to implement the real-time rooms and lobbies that needed to be created for each game. Another challenge we faced was ensuring real-time gameplay between players. We had to optimize our code to ensure that players could input words and see them displayed on their screens in real-time without any delays or lag. To do this, we had to make use of Flask socket.io as well as some JavaScript that we were not very familiar with. Overall, it ended up working out as we were able to deliver a polished product.
🎖️Accomplishments that we're proud of
We're proud of creating a game that is not only fun to play but also challenges players to think creatively and expand their vocabulary. We're also proud of our implementation of the NLP model for similarity checking, which has significantly improved the gameplay experience.
📝What we learned
Through building Lexicon Legends, we learned how to effectively utilize NLP technology in a real-world application. We also learned how to optimize our code for real-time gameplay and how to work with Flask and Flask Socket.io to create a scalable web application.
User Flowchart

👀What's next for Lexicon Legends
In the future, we plan to add more features to Lexicon Legends to enhance the gameplay experience. This includes adding different game modes, allowing players to select difficulty levels, and adding a leaderboard to track player scores along with an elo based ranking system for free play. We also plan to optimize the game further to ensure smooth and seamless gameplay for players. We plan to make several mini-word-games. With a wide range of options to choose from, we think that players will enjoy our games more and more, and will improve their vocabulary in the process.
Log in or sign up for Devpost to join the conversation.