🌭Woof! How Neiro Runner Keeps It Fair!

Hey there, pup pals! 🐾 Ready to learn how we make sure everything's fair in Neiro Runner? Let's dive into the paw-some details of our Provably Fair system!

Check the Result

To see how the two hashes gave the winning number, follow these steps:

  1. Combine Seeds:

    • First, mix the server_seed and client_seed into one string. The server_seed comes first, then the client_seed. Easy peasy!

  2. Generate Hash:

    • Use a SHA3-256 hash generator to hash the combined string. You can find many online SHA3-256 generators, like this one [link].

  3. Convert to Integer:

    • Take the hash and convert it to an integer using hexadecimal conversion. Here's a little code snippet to show you how we do it:

pythonCopy codedef generate_number_and_hash(server_seed: str, client_seed: str):
    number_seed = server_seed + client_seed
    random_number_hash = hashlib.sha3_256()
    random_number_hash.update(number_seed.encode('utf-8'))
    random_number_hex = random_number_hash.hexdigest()

    random_number_int = int(random_number_hex, 16)
    return random_number_int, random_number_hash
  1. Calculate Multiplier:

    • Use the integer random_number_int to calculate the multiplier. Check out the code below:

pythonCopy codedef get_multiplier(random_number_int):
    random_number = random_number_int % 100
    if random_number < 3:
        return 1.0
    else:
        random_number = random_number_int % 1000
        d_rand_num = random_number_int / 1000
        x = 99 / (1 - d_rand_num)

    x = math.floor(x)
    multiplier = max(1, x / 100)
    if multiplier > 150:
        return 150

    return multiplier

Compare the Results

Woof! Now you can get the calculated multiplier and compare it to the multiplier at the end of the game. This way, you can be sure it’s a fair game! Just follow these steps and see how we keep things transparent and fun for everyone.

So, wag those tails and enjoy your time in Neiro Runner, knowing we’ve got your back with fairness and transparency! πŸΆπŸŽ‰

Last updated