Преглед на файлове

add comment on decodePassword

master
Noëlle Anthony преди 6 години
родител
ревизия
265d05f53b
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7
    0
      metroidgen.py

+ 7
- 0
metroidgen.py Целия файл

def decodePassword(self, pwd): def decodePassword(self, pwd):
""" Sanity checking! This function decodes an input password back into a bitfield, """ Sanity checking! This function decodes an input password back into a bitfield,
so that you can check that it was properly encoded. so that you can check that it was properly encoded.
Q: Why doesn't this display the game state?
A: I trust that https://www.truepeacein.space properly encodes the game state.
So when I create a game state with the randomizer, I can recreate that
game state at TPIS and use the password generates as its input, to check
against my randomized game password. In other words, this is a testing
function, and in the intended use case I'll know what the input bitfield is
and be able to check against it.
""" """
densePwd = pwd.replace(" ","") densePwd = pwd.replace(" ","")
numPwd = [] numPwd = []

Loading…
Отказ
Запис