The program that I wrote is a trivia game where you are shown a quote from a random movie and you have to correctly guess the movie that the quote is from. The number of quotes you must correctly identify to win is five and you only have three lives to start with, which you lose with each incorrect guess. An additional feature in this game is hints: if you correctly guess three quotes in a row, you gain the ability to use a hint for a quote that might be hard to identify. This program uses a Graphic User Interface or GUI for short, which presents the program's features in a graphically appealing way to the user.
There were two main reasons that I wanted to do this project. The first reason is that I wanted to add Java to my skillset, since it is a popular programming language that seemed like it would be easy for me to learn. The second reason was so that I could learn how to use a programming language like this to create a GUI, since I have exclusively been making console-based programs for the last few years. I was surprised at how easy to understand this process was and was happy with what ultimately became my program.
Movie Quotes Game in Java with GUI - Demo and Walkthrough
This program was developed within Visual Studio Code for Mac
The programming language for this program is Java and it uses the package java.awt, which contains classes for GUI, and Swing, which is an extension for java.awt. HashMap, ArrayList, and Collections are also imported for this program.
- Add more movie quotes so that repeats are less frequent