Inspiration
The night before HooHacks, my teammates and I spent the night playing a relatively lesser known card game known as Coup. We thought it was a fun game and HooHacks would be a great opportunity for us to develop an interactive project that would allow users to play the game online. Considering how often each of us Discord and how much we have previously enjoyed discord bots and games, we decided to host our game on a Discord bot.
What it does
Our Discord bots joins a player's Discord server and from a user text command, our bot will launch an instance of a game for the server channel that will let up to 4 players join at a time. Once started, the game will run an entire Coup game from beginning to end according to the rules that can be found here.
For the benefit of players, the Discord bot will also calculate probabilities of what it thinks the player's opponents' hands are.
How we built it
Our bot is written using the Pycord API, a maintained fork of the now discontinued discord.py API.
Challenges we ran into
Most of the challenges we ran into were a result of us going into the project while trying to learn Pycord for the first time. Working with a Discord API in Python was really interesting for a first time experience, and learning from our mistakes helped us better learn how to work with an API.
Accomplishments that we're proud of
We made our first Discord bot using Pycord that plays games with Discord users!
What we learned
We learned how to use Pycord and how working with Discord's Developer Portal.
What's next for Coop Game
Hopefully the future of Coop Game includes much better readability for players and . More importantly, we want to finish implementing some sort of bot for the project, either using simple AI heuristics, or possibly even Reinforcement Learning.
Built With
- pycord
- python

Log in or sign up for Devpost to join the conversation.