Inspiration
We were inspired by a multiplayer wordle game from last year's Royal Hackaway V5. Naturally, we wanted to take this idea to the next level by integrating it with something we use every day, Discord.
What it does
Cordle is a discord bot that adds commands to a discord server. These commands allow server members to challenge each other to wordle duels. These duels involve the two players involved to play wordle live againt each other. Both players work towards the same word, but have separate games and cannot see each other's progress. The first to solve the wordle is crowned the winner! Most importantly, we have added a competitive system where trophy points are awarded from winners and deducted from losers, so you can truly be better than your friends at the world's premier alphabet game.
How we built it
Since we knew this project would be a discord bot, we implemented it in NodeJS using the Discord.js package. The bot uses this script to register and monitor for "/" commands issued to it from a discord server. It can then keep track of all the active challenges and games in the server. The bot creates breakout threads for users to duel in privately to keep channels clear of clutter. Once games are complete, a Firebase database is used to store all known players and their scores, allowing the bot to generate leaderboards.
Challenges we ran into
We initially wanted to implement a mySQL database, however we ran into issues with the library and the University network refusing us access to our server. This is why we made the decision to move to the cloud-based Firebase solution. We struggled to learn Firebase so quickly, but in the end we managed to get it to work.
We also found navigating the Discord.js docs to find information on commands rather difficult, but some perserverence got that sorted.
Accomplishments that we're proud of
We are overall very proud of our teamwork. Initially we were very disorganised and unproductive, but within a couple of hours we had successfully split the project into four and were working much much faster. This allowed us to build the whole project in time.
We are proud of the overall feel of the game, as it feels much more polished than we were initially expecting it to be.
What we learned
We learned a lot about JavaScript and Firebase, as well as good teamwork skills. We also got some solid git practice done which is always helpful.
What's next for Cordle
To continue Cordle, the codebase would likely need a big cleanup as it definitely got less organised as time went on. We initially hoped to have more than just the duelling game for Cordle, so in the future we would like to add more gamemodes such as free for all.
Log in or sign up for Devpost to join the conversation.