You can play D&D and similar games solo but they usually require some help and extra tools to do so. Might I point you towards the !solorpg@lemm.ee community? They might be able to answer questions and help you get started if you want to give it a try.
RPG
Discussion of table top roleplaying games.
I have never attempted to play D&D solo, but I have discovered other RPG’s that are designed to be. Ironsworn and Starforged are both built for the solo adventurer.
Yes. You use a GM emulator like Mythic. A GM emulator is basically a bunch of random tables you use to help you answer questions you'd normally ask the GM.
Some of the older adventures (AD&D, first and second edition) were written as single-player modules, kind of like the adventure game books of the same historical era. They're sort of like Choose Your Own Adventure books, but with RPG engines bolted onto the side controlling some of the paths taken.
I love playing solo! It's a different experience versus playing with a group though. Check out Me Myself and Die on YouTube for a good example, although keep in mind he keeps it tightly edited so you don't always see his full thought process.
I'm not a DnD player, but it's my understanding that you usually have a DM to guide the session and write/improvise the story that your players experience and react to. I don't know if that's possible in DnD by yourself, but you might be able to something like Gloomhaven, which had the DM and story built into the game. Then you're free to enjoy the story that it's created from a player perspective.
Slight adjacent to the topic, I wonder if Chat AI would ever be good at this sort of thing. Chat based adventure or pbp style 🤔
It um, kind of can! It took a bit of effort, but I got it to come up with a character and roleplay it, and then Lyra Moonshadow and I went on an adventure together!
Oh man, scary fun! Lol