BobCo(TM) Terminal v1.0

Published 2023-06-12


I'm pretty sure somebody already tried this, but I didn't want to spoil the fun for myself by seeing somebody else's great work before having my own go at it.

For everybody who hasn't played fallout: You have to guess the correct password by choosing from a set number of passwords. If you get it wrong the terminal tells you how similar the password you chose was to the password that you have to guess.

Controls:
ARROWS UP/DOWN + X

I replayed some Fallout in the last weeks(that I spent without the internet(damn you, internet providers)) and fell in love with their take on the retro-styled terminal.
I also thought it would be a nice exercise to get comfortable with string manipulation. And then I had to stop myself before it got too messy.
This is really just a small demo thing showcasing my take on the terminal with some lame jokes.
I wrote a neat function for comparing strings, if somebody needs one you may copy it. The rest of the code is a mess because I did it all in a day around work.

I split() two strings and then iterate through that new dictionary in a for loop. Each turn I check whether the two dictionaries have the same letter in the same place and, if they do, I add 1 to a score. In the end I return that score.

The part that is much more interesting is mixing the words and some other nonsensical special characters for that "hacky" look. There is a dictionary with random characters and a dictionary with the chosen words. The table you see in-game is itself another table consisting of 8 lines. Each of those lines gets filled character by character. There is a set gap between words that gets filled with nonsense. The chosen words dictionary gets chopped up again and sprinkled into the mix. Et voila! A "hacky" block of text.

Oh and i really hope @dw817 sees (and plays) this.