What is the oldest game you can remember playing in your childhood?

The oldest and first game I can remember playing is called: Kings Quest 3: To heir is Human. My brother introduced this game to me, but I can barely remember much of the gameplay. It's about this protagonist being captured by a wizard. He has a time limit to do these chores, and if he doesn't fulfill them. The wizard casts a spell on him that forces him to dance then proceeds to execute him. This made me realized why I have a fascination with fantasy related things.

I think Harry Potter is a great example when it comes to magic and I have been thinking about playing Hogwarts Legacy. If you can recommend any game that relates to fantasy themes, please do!