Inspiration
When trying to come up with a game idea for this hackathon, I immediately thought a game I played a lot growing up - Yahtzee! From playing the Mickey Mouse version as a kid, to passing around a digital handheld game with my brothers on long car trips, to playing the traditional board game with my husband in our first home together.
I began to consider ways to put a twist on the traditional game and thought of another game I played with my brothers as we got older - poker. A lot of the scoring combinations are similar, such as the full house, four of a kind, and straight. Poker has the additional concept of a flush, which I thought could be fun to introduce to Yahtzee.
What it does
The game is played the same as traditional Yahtzee, but now the dice have 12 sides instead of 6 and each number can be rolled in one of two different colors. If you roll all 5 dice the same color, the flush acts as a multiplier and all score values are doubled.
It may not seem like a huge change, but it can have a surprisingly significant impact on strategy. It also just adds more opportunities for excitement throughout the game!
How I built it
Yaht-Z Flush was built using Devvit Blocks. It utilizes the Reddit API Client, Redis, and Realtime plugins. In addition, it uses Moment.js to manage dates.
Challenges I ran into
As a full-time working mother to 2 small children, the biggest challenge I faced was finding time to work on this project. Many thanks to my husband for his patience over the past couple of weeks!
In terms of more technical challenges, I definitely struggled a bit with the size constraints of the post. It took some creativity to find a way to lay things out in a way that was clear, clean, and concise.
Accomplishments that I'm proud of
I'm very proud with how the overall game turned out. While I have done some development with React and Typescript in the past, it's been a few years and I was definitely a bit rusty. It was great to get back into it.
What I learned
I learned a lot about the various capabilities of the platform, as well as some of the limitations. I was even able to take advantage of the new "finally" parameter for useAsync, which was only added this week.
What's next for Yaht-Z Flush
One thing I was hoping to add but didn't have time for was to display some sort of celebratory animation when you roll a Yaht-Z or a flush. I also received a suggestion to add the ability for users to select their secondary dice color, instead of always using red. I think both of these could be fun to add to the game.
Log in or sign up for Devpost to join the conversation.