This is still a work in progress. Expect to see more content here soon.
Back Thumbnail for the project
Completed

Flashcard Royale

Flashcard Royale is a web-based auto-battler game developed in 24 hours at a hackathon. Players can import flashcard decks from Quizlet to create unique battling card units. Correctly answering flashcard prompts powers up card attacks in battles against opponents, blending educational content with engaging, strategic gameplay.
Created: Apr 5, 2025
Github Stamp Visit Stamp
Web ApplicationGameHackathonEducational

Article Published: Apr 19, 2025

FlashcardRoyale

Flashcard Royale: Battle to Learn!

Imagine flashcards, but way more exciting. That’s the core idea behind Flashcard Royale, a web game we built in just 24 hours at a college hackathon. We wanted to combine the engaging strategy of auto-battler games with the education of flashcards. This resulted in a game where your knowledge literally fuels your army!

From Flashcards to Fighting Units

In Flashcard Royale, the aim of the game is to study flashcards while using them to build a battling team! The game lets you import flashcard decks so you can build out your own themes, like history, science, or even coding terms. The game turns each card into a unique fighting unit.

Screenshot of Flashcard Royale Card Unit.Screenshot of Flashcard Royale Card Unit.Screenshot of Flashcard Royale Card Unit.Screenshot of Flashcard Royale Card Unit.Screenshot of Flashcard Royale Card Unit.Screenshot of Flashcard Royale Card Unit.

When building your deck, you can’t see the cards’ front or back, but you can see the unit’s stats and attacks. In this prep phase, you can select from a variety of upgrades to add to your units. These upgrades all have a cost, and you only get a certain budget at the start of the game. Each of the upgrades has different effects on your unit’s stats and attacks.

Screenshot of Flashcard Royale Card Unit Upgrades.

The gameplay is all about strategy and knowledge. Once you’ve built your deck, you send your flashcard units into automated battles against opponents. When your card goes to attack, you need to correctly write what’s on the back of the card. Correctly answering the flashcard prompt for each unit powers up their attacks! Get it right, and your unit unleashes a blow. Misremember the answer, and your attack will miss entirely, and your opponent will have the chance to attack you.

GIF of Flashcard Royale Battle.

It’s a fun, engaging way to test your knowledge and learn new things, all wrapped up in a competitive game.

LLM-Powered Card Stats with Gemini 1

To handle deciding the stats of new cards, we integrated Google Gemini 1 to automatically generate stats for each flashcard unit. Based on the flashcard’s content and difficulty, Gemini assigns values for health and attack.

This means more challenging flashcards can become powerful units, while simpler cards might be weaker.

This LLM-powered stat generation adds a layer of automation to the game that allows deck building using any flashcards you can import. You have to think not just about the flashcard content, but also how Gemini 2 might interpret its difficulty and assign stats. It’s a dynamic system that makes every deck unique.

Built in 24 Hours with SvelteKit and Firebase

The clock was ticking! We had just 24 hours to go from idea to a working game at the hackathon. To make it happen, we chose SvelteKit 3 for our full-stack framework. For backend and user authentication, we relied on Firebase 4 and Firestore 5 .

Svelte Stamp Firebase Stamp Gemini Stamp

Challenges and Learnings

Building a game like this in 24 hours was definitely a rush! We faced a few challenges and learned a lot along the way. 24 hours is not a lot of time to build a full-stack web app! We had to be super efficient with our time, prioritize features, and make quick decisions. We had a pretty good strategy of splitting the work by frontend & backend. We also handled the teamwork under pressure well and effectively managed the scope of the project.

For some of us on the team, Firebase 4 was new territory. We had to quickly learn how to integrate it for user accounts and data storage. While the two people who knew Firebase spent the most time with it, everyone got to dabble and gained practical experience with Firebase backend services and client-side Firestore database interactions.

Working in a team of four, sleep-deprived and on a tight deadline, tested our collaboration skills. We were able to effectively manage our time by doing periodic communications to keep track of what needed to be done at every point in the project. These collaborative problem-solving skills in a fast-paced development environment were invaluable and helped us get the project done on time.

Key Contributions

  • Designed and implemented the user interface (UI) and user experience (UX) for the Flashcard Royale web application, including user account creation, game setup, and in-game battle screens.
  • Developed the core game logic for the auto-battler battle system and flashcard-based attack mechanics within the SvelteKit frontend.
  • Contributed overall project planning and team management within the 4-person team.

References

Thanks for visiting!

12/21/2025, 5:30:19 PM

Receipt #445620

-------------------------------

References

  1. Google Gemini
  2. Gemini
  3. SvelteKit ℹ︎ SvelteKit is a full-stack web framework built on top of Svelte, designed for building fast and efficient web applications.
  4. Firebase ℹ︎ Firebase is a Backend-as-a-Service (BaaS) platform that provides various tools and services for building web and mobile applications, including authentication, databases, and hosting.
  5. Firestore ℹ︎ Firestore is a flexible, scalable NoSQL cloud database from Firebase for mobile, web, and server development.
  6. Google Gemini. ℹ︎ Google Gemini (formerly Bard) is a family of multimodal large language models developed by Google DeepMind.
  7. Quizlet ℹ︎ Quizlet is a web and mobile application designed to help students study information through interactive flashcards, games, and quizzes.
-------------------------------

TOTAL: $ 91.53

Amount saved: $5

445620

Come back soon ✌︎

Thank you for visiting :D

Aidan Schmitigal | © 2025