Inspiration

Throughout quarantine, many of my fellow students and teacher in my High School were always wondering if there were going to be any tests, and if there was, how would they be administered. Of course, my project does not solve that problem but it gave me the idea to start working on test based application. And of course, since I love games and competitiveness, I decided to make a game where people compete against one another on tests.

What it does

This program helps people keep their brains sharp and ready for use. Users can run the client and wait for there to be one other person running the client. They will then be matched against each other and each client will receive a test which they have to complete. The person to get the most answers correct on the test the fastest wins! Unfortunately no prizes.

How I built it

I used java as the language. For the UI, I used JavaFx, a now external library for java. For the networking, I used Netty.

Challenges I ran into

This was my first time using JavaFx and Netty, so the entire thing was a huge challenge for me. I had trouble designing classes properly, eventually just combining most of the classes into a somewhat organized pile of code. Also, since it was my first time using Netty and one of my first times ever networking, I also had trouble figuring out how to send and receive data. Also, there is a problem that sometimes the clients wont start the game and will just stay on the connecting screen. I do not know the cause of this problem.

Accomplishments that I'm proud of

Honestly, just being able to send messages across the network from a Client to the Server and back from the Server to the Client. Clearing that huge obstacle gave me enough motivation the finish this project.

What I learned

I learned a lot about networking with Netty (but there is still a lot more to learn), and some basic functions in Javafx.

What's next for TriviaRun

I plan on fixing up the Server side a little and making the UI more pretty.

Built With

Share this project:

Updates