A numbers guessing game.
When people are first learning a coding language, I think one of the best ways to get comfortable with it is to make something like a number guessing game. The program comes up with a number that the player has to guess in a certain number of tries.
I like it because it seems really simple at first, but to do it well requires a lot of fairly advanced ideas. Depending on the language, a number guessing game can require functions, imports, player input, data types, looping, and conditional statements. It also allows for logic errors that many new programmers haven't really faced before. They can be tough to debug.
Over the next few days I'm going to write four different number guessing games in increasingly more obscure languages. The first will be python. It will just run in the shell and won't have a user interface of any kind. The next will be Java. It will also run in the shell and not have any user interface.
The third language will be one that I haven't used since the late '90s. I'm going to dust off my BASIC and see if I can remember how to do loops. The final language will be 6502 assembly. I've dabbled in it a little bit using NES Maker, but I'm not strong in it by any sense of the word. It will be by far the lowest level language I've ever played with.
This is nothing but a personal project to tackle over my spring break. I enjoy languages and the different thinking required for each one. I have no real ambition to create anything more complex in things like BASIC and 6502, but it should be a fun brain exercise.
Up next will be the python code!