Inspiration
We were playing guess the song in the car and realized it was a fun game, so we wanted to make this game more accessible and single played. We wanted to capture the moment when you finally recognize a song!
What it does
Snippet is a music guessing game that challenges players to identify popular songs from short audio clips. The game randomly selects a popular song and gives players up to three progressively longer clips to guess correctly. Players start with 100 points, losing 20 points each time they play a clip (except the first one) and 10 points for each wrong guess. The faster you recognize the song, the higher your score! The game features an intuitive GUI with a spinning record button that brings a nostalgic vinyl feel to the experience.
How we built it
We built Snippet using Java Swing for the graphical interface and Java's Sound API for audio playback. The game architecture uses ArrayLists to manage multiple audio clips for each song, allowing us to serve progressively revealing snippets. We implemented an event-driven system using ActionListeners to handle user interactions like playing clips and submitting guesses.
Challenges we ran into
One of our biggest challenges was working with Java's audio system and ensuring smooth playback of WAV files.
Accomplishments that we're proud of
The game is fun to play with a fair scoring system. The code works with a working GUI.
What we learned
This project taught us a lot about event-driven programming and managing audio processing.
What's next for Snippet
We want to add a larger library of songs across different genres and decades, letting players choose their preferred music style. We're considering implementing difficulty levels, online leaderboards, and multiplayer functionality so friends can compete in real-time.
Create a "daily challenge" mode similar to Wordle where everyone gets the same song each day.
Log in or sign up for Devpost to join the conversation.