Inspiration
We generally wanted to make some sort of game while reading from a dataset, and Jeopardy fit this purpose perfectly.
What it does
The user can play by either typing in the full answer or by selecting a choice. They have 10 seconds to respond to the question, and after that time the computer will make a random guess. Once the game reaches the 10th, and final, round, they play for double points. After that, the game ends.
How we built it
We used Java to code this project in IntelliJ IDEA. We read from a CSV dataset of 200,000 Jeopardy questions that we acquired from Kaggle, and then formatted those questions into a Question class to make them easier to manipulate. From there, we coded the full gameplay.
Challenges we ran into
One big issue was setting up the waiting time before the computer tries to answer. Figuring out how to use the Timer and TimerTask classes in Java was very difficult, and we ran in to a lot of errors before we managed to fix it. There was also issues with splitting the data in the CSV dataset, as there were issues with questions being cut in half or having extra characters that weren't needed. Eventually though, this issue was also fixed.
Accomplishments that we're proud of
We're proud of making the Timer work, as that was the hardest part of the project for us. We're also proud of being able to make this game at all, as this is all of our first times in a hackathon and we're also not very experienced with working with a team.
What we learned
We learned a lot about working in a team and how hackathons are structured, and we learned a lot about Java and different classes in it.
What's next for Jeopardy Game
Next, we would like to combine the Main and Main2 files so that the user can play with both options merely by picking a choice rather than having to run a different file. We would also like to add a GUI aspect so that it actually looks like Jeopardy rather than having the entire game run through console output.
Log in or sign up for Devpost to join the conversation.