I swear this has become a discussion on how to make a game that very few people, if any, will like to play, lol.
I personally like to make near unwinnable games. That doesn't mean that they can't be won. It just means that it is very difficult. You may have to pay attention to subtle clues to find the solution.
As an example: Minecraft.
My server was a trap server. I had one trap that activated when you went to use the bed in the middle of a dungeon/fortress. It set your spawn point in the middle of an obsidian room and then flooded the room with lava and water before activating all the traps in the dungeon.
I had one "safe zone" that was relatively safe on the lower floors, but on the upper floors...
You had some absurd mazes and puzzles.
One puzzle you had to go through a I think 100x100 'cube' teleportation room maze (aka: 10000 rooms). The solution for the maze was outside and every room was exactly the same and you spawned in the middle with four possible choices each time. And while some rooms had a teleport back to the previous room, that was just if it happened to be connected that way. Death from starvation or attempted suicide would put you back in the first room, but the clue for solving the maze was at the start of the maze BEFORE entering.
Similarly, the forest of illusion maze of mine had it so that you would go and have no idea if you are going the right way until a semi-random point past the point where you made a mistake. This meant you had no idea where you made the mistake. Good luck finding the clue...
Then you had the everchanging 3D maze. Every few minutes, the maze would change. If nobody cleared it after X hours after a person had entered, it would wipe the maze clean with a one hour warning (minimum time to get through) (the entrance would seal itself so nobody else could enter). My friend heard about my maze and asked me if I had designed the Cube from the movie Cube (which I watched after it was mentioned).
There was also my railway where choosing the wrong path could lead you to your untimely un-death. Trapped inside a block of stone while taking damage, but also being healed.
===
Side note, in a certain game, before they patched it, I did heal the enemies due to my personality of wanting to save everyone-even monsters. People kept me in the parties only because I was a good enough healer to make up for that, lol...
===
If you've played one of my games, ilychron: First Fate, and the original form (or a few forms after), one of the bosses had an ability that could swap all of your names around (and the bosses's as well). It could also swap your hp and mp, reverse your hp and mp (so if you were at full health, you now had 1, if you had 1 health, you now had full), reverse the bosses' hp and mp, swap those, make a doppleganger so that you had to kill both the same turn (unless you stopped it from finishing the summon), etc. Essentially, it had a bunch of skills that just messed with you. This is while you are fighting 3 other bosses that were serious, each with some game over ability that had a very specific way to stop it (though there were ways to buy time). To find out how to stop the skills, you had to either lose the game to learn that specific move's counter, or figure it out through clues given via item descriptions.
Another boss had the ability to do a random action with almost any effect if you didn't beat it within 80 turns or figure out how to prevent it (it was preventable, but the only clue given was the boss's class - mage (if you can't guess the solution, you obviously don't play many rpgs)). The skill could delete your saves, crash the game, freeze the game, win the game, kill the bosses (there were two that you had to fight at the same time), kill the party, and more.
I'll show some examples from the first boss battle
spoiler about the game:
Spoiler
The boss with the skill could join your party on a later playthrough).
Images:
===
You can also give joke abilities to make it a bit more fun. For example, I had a spell that could only be used on yourself and it only cured silence. Now, the problem was it was a spell and only could be cast on yourself.
There was also the spell that gave you an autores, but could only be used if you were at exactly 4 health and 4 mana and in the fourth character slot on a turn that was a multiple of 4. Usable, but the conditions were essentially impossible.