Course:CPSC312-2023/Prologic trivia

From UBC Wiki

Prolog Trivia πŸ“šπŸ”Ž

Authors: Sarah Ibrahim, Kevin Wong

A preview of the main menu of the Prolog Trivia game.

What is the problem?

Our original intent was to implement a 2D basketball game using Prolog with an associated GUI! However, it soon became clear that adding the animations we wished to include, such as moving arrows and gauges, were much too complicated to be implemented in XPCE.

SO:

Our new goal is to implement a trivia game in Prolog! Our trivia game will have 3 sections with 20 questions each: Video Game trivia, Pop Culture trivia, and Geography trivia.

What is the something extra?

We will be using XPCE to implement a GUI for our trivia game! In this GUI, the player can view the questions being asked and pick from a series of multiple choice answers. We think this makes the trivia game quite interactive and fun!

Thus, our something extra is to go through the learning curve of using the XPCE library to implement an interactive GUI!

What did we learn from doing this?

We learned quite a few valuable lessons from working on this project! First, by working extensively on this project, we were both able to gain more experience with Prolog's syntax and become more comfortable writing code in Prolog! Our experience in this project provided us with a new perspective and appreciation of the massive number of ways one can use Prolog.

Second, we learned that hard work pays off as we were able to create a game we were both proud of by challenging ourselves to create a GUI using the XPCE library. Finally, we learned that more complex games that include animations such as moving objects with different velocities and trajectories may be best done in OOP languages instead (at least, when it comes to creating an XPCE GUI).

Links

https://github.com/svolterra/Prolog-Trivia