Open schmich opened 8 years ago
!knightme
adjHashBytes = sha256(name.trim.lower) adjBigId = BigIntFromBytes(adjHashBytes) adjIndex = BigMod(bigId, BigInt(adjectives.length)) adj = adjectives[int(adjIndex)] nounHashBytes = sha256(name.trim.lower.reverse) nounBigId = BigIntFromBytes(nounHashBytes) nounIndex = BigMod(bigId, BigInt(nouns.length)) noun = nouns[int(nounIndex)] "You are henceforth known as #{name} the #{adj} #{noun}"
!knightme