DEV Community

Cover image for I Created a Programming Puzzle Game

I Created a Programming Puzzle Game

Dennis Persson on October 23, 2022

Halloumi! I made a new puzzle game. It's a four-question pyramid quiz game. It's for all those brainiac unicorn developers who can't say no to a ch...
Collapse
 
schemetastic profile image
Schemetastic (Rodrigo)

Wooow! I had so much fun playing this, I played the "I know stuff" pyramid, and for sure I'm no t a senior but I made my way out of it...

Honestly, with the IP question I cheated and Google the answer cause I had things like "router", "local address", or things like that.

With the long URL I decoded the URL and luckily I'm a fan of JS.

With the Python one, I do not know how to program in Python but I'm a terminal user and I have python3 in my computer, so it took me a while to figure it out, but at the end I had a laugh.

In the last one... I don't understand much of regular expressions... so I took my shot with my favorite animal (or one of my favorites)... and I had it at my first try, hahahaha.

It was so funny to play, a bit like a Slumdog Millionaire experience, haha.

Collapse
 
perssondennis profile image
Dennis Persson

Thanks for a detailed answer😀Great choice of favorite animal😄

To play around with the Python question is actually a great way to learn bash I think. The question mainly consists of bash scripting, and by learning how pipes, grep, sed and awk work you can do a lot of bash processing :)

Regular expressions is something I enjoy and think is useful if you use it for the right things, so you will see more levels with that, maybe with some guidance.

Collapse
 
schemetastic profile image
Schemetastic (Rodrigo)

How to use Regular Expressions for bad things? Haha.

That is something I have considered to learn but I find it quite tedious but at the same time useful, any place you recommend to learn about it? Or maybe you have posts about regular expression or plan to write about it?

Thread Thread
 
perssondennis profile image
Dennis Persson

Haha I have never thought about what the wrong way of using regexes is, but I was just thinking that many people claim to have practiced regex but never found any use of it.

If you like puzzles I know there are crosswords with regex, a fun and thereby good way. Personally I learnt it by googling it every time I could see a reason to use it. Pretty slow way to learn it, although a good way to get the mindset to use it.

I will write an article about it and hopefully release it in November. Got a few ideas I have to prioritize among 😄

Thread Thread
 
schemetastic profile image
Schemetastic (Rodrigo) • Edited

Hahaah, I think of it like for forms validations... or string validations in JS.

I Google a lot too, hahaha, I agree, is like a very slow way to solve a puzzle, and from time to time I misplace a piece in the wrong place, but is still a different kind of gained experience that might not be acquired in a different way.

Great! Let me know when you post that article, I'll be happy to read it!

You can email me at hello@schemetastic.com, but anyway I already put a reminder to that on November 30.

Shows a reminder in a day 30 of a digital calendar

Thread Thread
 
perssondennis profile image
Dennis Persson

Oh, thanks for the deadline. Now I'm motivated to prioritize that article 😄 Hope you will enjoy it!

Thread Thread
 
schemetastic profile image
Schemetastic (Rodrigo)

Hahahahha

You said “hopefully release it in November” so I had to choose a merciful date to read it.

😂😂

Collapse
 
phlash profile image
Phil Ashby

Nicely done - although you may want to obfuscate the map of questions and answers in the page source.. Ctrl-U is my friend 😄

Collapse
 
perssondennis profile image
Dennis Persson

Haha ya cheating was allowed, maybe that was the most fun way to cheat 😄

Collapse
 
moopet profile image
Ben Sinclair

Hmm the only one I could do without searching was the "I know stuff" level :)

Collapse
 
perssondennis profile image
Dennis Persson

That's good of you :) It's a bit tricky to decide an experience level for the questions since everything is googleable.

Collapse
 
ayaher profile image
Afonso Lima

I loved the game! This is perfect for practicing problem solving, even though some questions are very straightforward. I'm going to share this with my friends 🤓

Collapse
 
perssondennis profile image
Dennis Persson

Thanks for sharing. I think I will continue adding more levels. Good to know that many of them seemed to be too easy :)

Collapse
 
tobias_korsbck_16c6bbddd profile image
Tobias Korsbäck

I din't know #3 on Heroic level. Had to know the answer so I cheated, sorry :)

Fun game!

Collapse
 
perssondennis profile image
Dennis Persson

My bad that you could cheat! Glad you liked it :)