Inspiration

My sister was my main source of inspiration for this project. She's a huge fan of Harry Potter, and I wanted to show her my project afterwards. I also noticed while scrolling through the sponsors list, that we could code a project through MATLAB. Since my coding skills basically only include MATLAB and C, this was perfect! -Carolyn

What it does

You answer the 5 questions we put into the quiz, and it spits out a what house you're in!

How we built it

We used the MATLAB app IDE. Depending on what button you press, determines your house. The way our code is supposed to work is basically a bunch of if statements. For example, if you press X button, add 1 to the Hufflepuff category for instance, and a make the next question appear. At the end, the code decides which house has the highest points, and that becomes your house.

Challenges we ran into

MATLAB also kept freezing on and so I'd have to close the app, and lose all my progress. (couldn't save while frozen). - Carolyn Also, apparently you can't share certain code between different versions of MATLAB T_T It makes a weird internal error. (Alec's was the newest version)... The last time Alec used MATLAB was 2 years ago, and he never worked with the app part. Extreme time crunch at the end.

Accomplishments that we're proud of

It works!

What we learned

MATLAB is 27 GB Don't start projects super late. Come to the hackathon prepped with an idea.

What's next for Sorting Hat Quiz

Well, to add more questions. Also, we were thinking of making a "hat" that would use an accelerometer to realize when it is being picked up and placed on someone's head and automatically start the quiz (so you don't have to click start).

Built With

Share this project:

Updates