by moomin · 4y ago · 0 comments
> Fountains have a 1/30 chance of summoning a Water Demon when quaffed, this demon has a (80+DL)/100 chance of being hostile. If not hostile, it grants a wish and vanishes.
> every time the character attempts to walk into a wall, it calls random() without wasting any in-game time
> So it is advancing the RNG millions of times (or whatever is necessary, maybe not that many times) for each "real turn" until it reaches a favorable point in the RNG as tested in parallel offline (e.g., find a spot in the RNG such that a quaff 1) gets a demon that 2) grants a wish and 3) the fountain stays... advance the RNG as many times as it takes to repeat that... again and again, for 90 wishes)?
This is not solving nethack, this is just save scumming / cheating.
Nethack is not a game where the dice are fair. Nethack is a game where the phase of the moon has real influence.
Nethack is, though not originally designed for that purpose, a game which encourages players to learn to read the source code and familiarize themselves with text files, editing, and searching.
You could build a nice first-year CS class around Nethack, taking people from "this is a fun game" to "I have a tenuous grasp on programming" in a semester.
Hard disagree. No human player would remotely detect a difference if the exploitable pseudorandom seed were replaced with a truly random source.
> Nethack is not a game where the dice are fair. Nethack is a game where the phase of the moon has real influence.
The phase of the Moon _is not random_! It is deterministic! You're arguing against yourself here.
> Nethack is, though not originally designed for that purpose, a game which encourages players to learn to read the source code and familiarize themselves with text files, editing, and searching.
Entirely orthogonal to the issue of using a better random number source. Indeed, a good class project might be improving the source of randomness used by NetHack.
- is necessary for technical reasons
- is easily distinguishable from a different one by players
- can (and since it is Nethack, should) include the phase of the moon as a seedThe tournament in the NetHack Challenge is a bunch of bots playing the game in an ordinary manner. There is no comparison between the two things.
Yes, the bot is taking advantage of hidden state with the RNG... but there's nothing stopping a human from doing the same. It's possible for a human to take enough RNG-based actions and observe the outcomes to derive the current state of the RNG seed. Maybe that number is in the thousands or millions of actions, but a human could do it the same as a bot, we just don't choose to try.