~ 1 min

Building something for fun

#coding #game

During the holidays, we do mostly two things: eat huge amounts of food and spend a lot of time with our families. With so much time together, people spend time talking, playing games, watching movies and so much more.

Trivia

My family likes to play trivia quizzes. In the past, we would hook a laptop to a tv and play an old trivia game running on window. Unfortunately, we lost the game and the time came to do something about it. Being a developer, what could be more christmas-y than to build a game? 😇

I wanted something fun, simple to play and to spend only one afternoon making it. I did have a prototype working after one afternoon but eventually spent many more hours improving it.

Tech

The project is react app served from an express server locally. To play, all you need to do is navigate to a specific url on your phone's browser. When you first connect, you get to pick a name and when there are at least 2 players, the game starts sending questions. New players can join any time.

The prototype was made to play locally with my family so there no time limit to answer a question, it lets everyone answer, and for every right answer you get a point.

This is what it looks like:

Also, has you can imagine I did not write the questions. I downloaded a dataset of questions and answers and loaded it into the database.

It is always amazing how quickly you can throw something together and in this case, have fun with it.

Stack

Every was built with react, mongo, express and css.

By the way, I write about software development, web development, and Django. If you liked this post and were wondering how to get more... Join my inner circle (aka newsletter) in easy (and fast!) 4 steps.

  1. Fill your email.
  2. Fill your name (but only if you want).
  3. Smash the button. As hard as you can.
  4. There is no 4th step.

Add your name to join my inner circle (also known as newsletter 💌)

And that's a wrap. I hope you like it (I really do). If you did, hit one of those share buttons and spread it on your socials.

Related posts

If you liked this post and want to read more, take a loot at these: