You are browsing as a guest. Sign up (or log in) to start making projects!

24-game discord bot

  • 3 Devlogs
  • 6 Total hours

👉 ARE YOU A MATH NERD? 🤔 If so, I present... the 24-game discord bot, a minimalistic bot that lets you play the 24-game and compete with your friends. If not... well, too bad. You're gonna enjoy it anyways! I promise! The 24-game is a simple math game where you are given 4 numbers ranging from 1 to 13, and have to manipulate them through the 4 basic arithmetic operations and turn them into 24.

Ship #1 Pending review

I made the 24-game discord bot mainly for my nerdy math friend group to play a fun math game while hanging out on Discord. We couldn’t find ANY discord bots that have this feature, so I decided to make one myself. I believe that the olympiad math community servers might find this fun.

The most challenging part of this is probably getting the evaluation feature working well, as it needs to check the validity of, AND calculate a user’s mathematical expression to see if it equals 24.
I’m mostly just proud of being able to finish and make it working. It’s not particularly an impressive achievement, but it IS one more step in my coding journey!

Testing the project is really simple, just join the linked demo Discord server and use the /game command! You can also invite the bot to your own server using the link posted in the Github repo’s Readme.

This bot is intended to be minimalistic, but any feedback for new features is appreciated!

  • 3 devlogs
  • 6h
Try project → See source code →
Open comments for this post

1h 38m 44s logged

Added scoring to the 24-game bot. It keeps track of player’s score in a leaderboard that is shown in the end. Also, I added a parameter to the slash-command that lets you specify how many rounds to play the game for.

Currently a bug where the timeout gets delayed by up to 30 seconds, not sure if it’s my wifi’s issue or some sort of inefficiency in my code…

0
0
5
Open comments for this post

3h 26m 36s logged

24-game discord bot.
Create a basic game function to my 24-game bot that creates a single round from 4 numbers. Used nlile’s 24-game dataset on HuggingFace to get the valid number combinations, in order to avoid a ton of unecessary coding.
Right now it has one command: /game, and pressing on “enter answer” opens a Discord Modal. It is able to check for syntax errrors, invalid operations, disallowed numbers, etc.

0
0
17

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…