Nethack is fiendish, and you only have a single life. The dungeon is procedurally generated. There are techniques to ascending but it's hard even for people to do, let alone programming a bot.
You get potions, scrolls, weapons etc but have no clue what they are until you use them (some scrolls will help you identify what other things are in advance). Nothing about them will give you any clue (scrolls have names like "AFEWA AWEBRPO", potions are just colours etc.) To survive you need to use them though. You need to drink, but the potion might be one of weakness, poison, blindness, confusion etc. You need to eat regularly, and food is scarce, but it also might poison you. A ring of slow digestion is helpful there, but until you use an identify scroll on a ring you won't know what it is. It could end up being a ring of attract monster, for example.